Skip to content

Commit

Permalink
maybe fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
skymen committed Dec 25, 2023
1 parent ba6b9ab commit 7236707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
17 changes: 1 addition & 16 deletions commands/scaffold.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,22 +136,7 @@ function maybeExecuteInitScript(addonPath) {
const initScriptPath = path.resolve(process.cwd(), addonPath, "init.js");
if (fs.existsSync(initScriptPath)) {
console.log(`${chalk.white.bold("executing init script ...")}`);
const { exec } = require("child_process");
exec(
"node init.js",
{ cwd: path.resolve(process.cwd(), addonPath) },
(err, stdout, stderr) => {
if (err) {
console.error(err);
reject(err);
return;
}
console.log(
`${chalk.green.bold("init script executed successfully")}`
);
resolve();
}
);
require(initScriptPath);
} else {
resolve();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "c3ide2-cli",
"description": "A simple CLI for scaffolding construct 3 addons using c3ide2-framework",
"version": "1.2.0",
"version": "1.2.1",
"main": "index.js",
"license": "MIT",
"dependencies": {
Expand Down

0 comments on commit 7236707

Please sign in to comment.