Skip to content

Commit dcd5a88

Browse files
committed
fix:do not create package.json in "./custom" folder in newly created adminforth-app
1 parent 0cee947 commit dcd5a88

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

adminforth/commands/createApp/templates/custom/package.json.hbs

Lines changed: 0 additions & 12 deletions
This file was deleted.

adminforth/commands/createApp/utils.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,6 @@ async function writeTemplateFiles(dirname, cwd, options) {
317317
dest: 'resources/adminuser.ts',
318318
data: {},
319319
},
320-
{
321-
src: 'custom/package.json.hbs',
322-
dest: 'custom/package.json',
323-
data: {},
324-
},
325320
{
326321
src: 'custom/tsconfig.json.hbs',
327322
dest: 'custom/tsconfig.json',
@@ -375,6 +370,10 @@ async function installDependencies(ctx, cwd) {
375370
await execAsync(`pnpm install`, { cwd: customDir, env: { PATH: process.env.PATH } }),
376371
]);
377372
} else {
373+
console.log(`Using Node.js binary at: ${nodeBinary}`);
374+
console.log(`Using pnpm binary at: ${npmPath}`);
375+
console.log(`Using custom directory at: ${customDir}`);
376+
console.log(`Running install commands...`);
378377
const res = await Promise.all([
379378
await execAsync(`${nodeBinary} ${npmPath} install`, { cwd, env: { PATH: process.env.PATH } }),
380379
await execAsync(`${nodeBinary} ${npmPath} install`, { cwd: customDir, env: { PATH: process.env.PATH } }),

0 commit comments

Comments
 (0)