@theproductguy/create-mission-control 1.0.7 → 1.0.8
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/bin/cli.js +6 -5
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -67,13 +67,14 @@ async function init() {
|
|
|
67
67
|
|
|
68
68
|
// Use npm create vite to scaffold the app inside the 'app' folder
|
|
69
69
|
// Pin version to avoid experimental prompts
|
|
70
|
-
|
|
70
|
+
// Use npm create vite to scaffold the app inside the 'app' folder
|
|
71
|
+
// Pin version to avoid experimental prompts
|
|
72
|
+
const isWin = process.platform === 'win32';
|
|
73
|
+
const cmd = isWin ? 'npx.cmd' : 'npx'; // explicitly use .cmd on windows for clarity, though shell:true might find it
|
|
71
74
|
const viteProcess = spawn(cmd, ['-y', 'create-vite@5.2.0', 'app', '--template', 'react-ts'], {
|
|
72
75
|
stdio: 'inherit',
|
|
73
|
-
shell:
|
|
74
|
-
cwd: root,
|
|
75
|
-
// env: { ...process.env, PWD: root } // Maybe strictly needed? Let's check without first or keep it?
|
|
76
|
-
// Keeping env PWD just in case npx looks at it
|
|
76
|
+
shell: isWin, // Windows needs shell:true for .cmd execution
|
|
77
|
+
cwd: root,
|
|
77
78
|
env: { ...process.env, PWD: root }
|
|
78
79
|
});
|
|
79
80
|
|