File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,6 @@ task("noir-new", "Create a new Noir package")
9191 ) ;
9292 }
9393
94- const newPath = path . join ( config . paths . noir , args . name ) ;
95- const srcPath = path . join ( newPath , "src" ) ;
96- fs . mkdirSync ( srcPath , { recursive : true } ) ;
97-
9894 const nargoBinary = await installNargo ( config . noir . version ) ;
9995 const runCommand = makeRunCommand ( config . paths . noir ) ;
10096 fs . mkdirSync ( config . paths . noir , { recursive : true } ) ;
@@ -111,7 +107,9 @@ task("noir-new", "Create a new Noir package")
111107 } ;
112108 rootNargo . workspace ??= { } ;
113109 rootNargo . workspace . members ??= [ ] ;
114- rootNargo . workspace . members . push ( args . name ) ;
110+ if ( ! rootNargo . workspace . members . includes ( args . name ) ) {
111+ rootNargo . workspace . members . push ( args . name ) ;
112+ }
115113 fs . writeFileSync ( rootNargoPath , toml . stringify ( rootNargo ) ) ;
116114 }
117115 } ) ;
You can’t perform that action at this time.
0 commit comments