@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.
Files changed (2) hide show
  1. package/bin/cli.js +6 -5
  2. 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
- const cmd = process.platform === 'win32' ? 'npx.cmd' : 'npx';
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: false, // Don't use shell, it messes up CWD in some environments
74
- cwd: root, // Explicitly set CWD for the child process
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theproductguy/create-mission-control",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Scaffolding tool for Agent OS applications",
5
5
  "type": "module",
6
6
  "bin": {