4bnode 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/add-serialport.js +1 -1
- package/index.js +3 -1
- package/lib/ui.js +1 -0
- package/package.json +1 -1
package/add-serialport.js
CHANGED
package/index.js
CHANGED
|
@@ -107,7 +107,7 @@ async function createSkeletonApp(projectName) {
|
|
|
107
107
|
|
|
108
108
|
const installSpinner = createSpinner("Installing dependencies...");
|
|
109
109
|
installSpinner.start();
|
|
110
|
-
execFileSync("npm", ["install"], { stdio: "pipe", cwd: targetPath });
|
|
110
|
+
execFileSync("npm", ["install"], { stdio: "pipe", cwd: targetPath, shell: true });
|
|
111
111
|
installSpinner.succeed(chalk.hex("#00f260").bold("Dependencies installed"));
|
|
112
112
|
|
|
113
113
|
showSuccess([
|
|
@@ -125,6 +125,7 @@ async function createSkeletonApp(projectName) {
|
|
|
125
125
|
function runCommand(script, args = []) {
|
|
126
126
|
execFileSync("node", [path.join(__dirname, script), ...args], {
|
|
127
127
|
stdio: "inherit",
|
|
128
|
+
shell: true,
|
|
128
129
|
});
|
|
129
130
|
}
|
|
130
131
|
|
|
@@ -371,6 +372,7 @@ async function main() {
|
|
|
371
372
|
execFileSync("npm", ["run", "dev"], {
|
|
372
373
|
stdio: "inherit",
|
|
373
374
|
cwd: projectRoot,
|
|
375
|
+
shell: true,
|
|
374
376
|
});
|
|
375
377
|
}
|
|
376
378
|
// Legacy commands → route through handleAdd
|
package/lib/ui.js
CHANGED