Skip to content

Commit a20a22f

Browse files
committed
update new command
1 parent d47b5b0 commit a20a22f

File tree

1 file changed

+2
-12
lines changed
  • src/stable/build/commands

1 file changed

+2
-12
lines changed

src/stable/build/commands/new.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ export async function runCommand(
2121
await cp(templatePath, projectName, { recursive: true });
2222

2323
// Edit the configuration files in place so they are ready to use in the new project
24-
await editPackageJson(
25-
projectName,
26-
templatePath,
27-
azleVersion,
28-
experimental,
29-
httpServer
30-
);
24+
await editPackageJson(projectName, templatePath, azleVersion, experimental);
3125
await editTsConfig(projectName, httpServer);
3226
await editJestConfig(projectName);
3327
await editDfxJson(projectName, templatePath, experimental);
@@ -47,8 +41,7 @@ async function editPackageJson(
4741
projectName: string,
4842
templatePath: string,
4943
azleVersion: string,
50-
experimental: boolean,
51-
httpServer: boolean
44+
experimental: boolean
5245
): Promise<void> {
5346
const templatePackageJsonString = await readFile(
5447
join(templatePath, 'package.json'),
@@ -73,9 +66,6 @@ async function editPackageJson(
7366
if (experimental === true) {
7467
packageJson.dependencies['azle-experimental-deps'] =
7568
devDependencies['azle-experimental-deps'];
76-
}
77-
78-
if (httpServer === true) {
7969
packageJson.dependencies['@dfinity/identity-secp256k1'] =
8070
devDependencies['@dfinity/identity'];
8171
}

0 commit comments

Comments
 (0)