File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,22 +136,7 @@ function maybeExecuteInitScript(addonPath) {
136136 const initScriptPath = path . resolve ( process . cwd ( ) , addonPath , "init.js" ) ;
137137 if ( fs . existsSync ( initScriptPath ) ) {
138138 console . log ( `${ chalk . white . bold ( "executing init script ..." ) } ` ) ;
139- const { exec } = require ( "child_process" ) ;
140- exec (
141- "node init.js" ,
142- { cwd : path . resolve ( process . cwd ( ) , addonPath ) } ,
143- ( err , stdout , stderr ) => {
144- if ( err ) {
145- console . error ( err ) ;
146- reject ( err ) ;
147- return ;
148- }
149- console . log (
150- `${ chalk . green . bold ( "init script executed successfully" ) } `
151- ) ;
152- resolve ( ) ;
153- }
154- ) ;
139+ require ( initScriptPath ) ;
155140 } else {
156141 resolve ( ) ;
157142 }
Original file line number Diff line number Diff line change 11{
22 "name" : " c3ide2-cli" ,
33 "description" : " A simple CLI for scaffolding construct 3 addons using c3ide2-framework" ,
4- "version" : " 1.2.0 " ,
4+ "version" : " 1.2.1 " ,
55 "main" : " index.js" ,
66 "license" : " MIT" ,
77 "dependencies" : {
You can’t perform that action at this time.
0 commit comments