@theproductguy/create-mission-control 1.0.6 → 1.0.7
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 +2 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -67,7 +67,8 @@ 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
|
-
const
|
|
70
|
+
const cmd = process.platform === 'win32' ? 'npx.cmd' : 'npx';
|
|
71
|
+
const viteProcess = spawn(cmd, ['-y', 'create-vite@5.2.0', 'app', '--template', 'react-ts'], {
|
|
71
72
|
stdio: 'inherit',
|
|
72
73
|
shell: false, // Don't use shell, it messes up CWD in some environments
|
|
73
74
|
cwd: root, // Explicitly set CWD for the child process
|