File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
src/stable/build/commands Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,7 @@ export async function runCommand(
21
21
await cp ( templatePath , projectName , { recursive : true } ) ;
22
22
23
23
// 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 ) ;
31
25
await editTsConfig ( projectName , httpServer ) ;
32
26
await editJestConfig ( projectName ) ;
33
27
await editDfxJson ( projectName , templatePath , experimental ) ;
@@ -47,8 +41,7 @@ async function editPackageJson(
47
41
projectName : string ,
48
42
templatePath : string ,
49
43
azleVersion : string ,
50
- experimental : boolean ,
51
- httpServer : boolean
44
+ experimental : boolean
52
45
) : Promise < void > {
53
46
const templatePackageJsonString = await readFile (
54
47
join ( templatePath , 'package.json' ) ,
@@ -73,9 +66,6 @@ async function editPackageJson(
73
66
if ( experimental === true ) {
74
67
packageJson . dependencies [ 'azle-experimental-deps' ] =
75
68
devDependencies [ 'azle-experimental-deps' ] ;
76
- }
77
-
78
- if ( httpServer === true ) {
79
69
packageJson . dependencies [ '@dfinity/identity-secp256k1' ] =
80
70
devDependencies [ '@dfinity/identity' ] ;
81
71
}
You can’t perform that action at this time.
0 commit comments