@cccarv82/freya 3.7.2 → 3.7.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/cli/web.js +2 -8
- package/package.json +1 -1
package/cli/web.js
CHANGED
|
@@ -909,14 +909,8 @@ function run(cmd, args, cwd, extraEnv, stdinData) {
|
|
|
909
909
|
const env = extraEnv ? { ...process.env, ...extraEnv } : process.env;
|
|
910
910
|
|
|
911
911
|
try {
|
|
912
|
-
//
|
|
913
|
-
|
|
914
|
-
if (process.platform === 'win32') {
|
|
915
|
-
const comspec = process.env.ComSpec || 'cmd.exe';
|
|
916
|
-
child = spawn(comspec, ['/d', '/s', '/c', cmd, ...args], { cwd, shell: false, env });
|
|
917
|
-
} else {
|
|
918
|
-
child = spawn(cmd, args, { cwd, shell: false, env });
|
|
919
|
-
}
|
|
912
|
+
// Use shell: true on all platforms — ensures .cmd/.bat shims (npm globals) are found on Windows
|
|
913
|
+
child = spawn(cmd, args, { cwd, shell: true, env, windowsHide: true });
|
|
920
914
|
} catch (e) {
|
|
921
915
|
return resolve({ code: 1, stdout: '', stderr: e.message || String(e) });
|
|
922
916
|
}
|
package/package.json
CHANGED