@nightkatana/kronosys-app 1.0.0-beta.8 → 1.0.0-beta.9
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/kronosys.mjs +3 -1
- package/package.json +1 -1
package/bin/kronosys.mjs
CHANGED
|
@@ -22,6 +22,7 @@ const packageVersion = packageJson.version;
|
|
|
22
22
|
const inNodeModules =
|
|
23
23
|
projectRoot.includes("/node_modules/") ||
|
|
24
24
|
projectRoot.includes("\\node_modules\\");
|
|
25
|
+
const isWindows = process.platform === "win32";
|
|
25
26
|
const npmBin = process.platform === "win32" ? "npm.cmd" : "npm";
|
|
26
27
|
const npxBin = process.platform === "win32" ? "npx.cmd" : "npx";
|
|
27
28
|
|
|
@@ -53,7 +54,8 @@ function runCommand(bin, args, env, cwd) {
|
|
|
53
54
|
const child = spawn(bin, args, {
|
|
54
55
|
cwd,
|
|
55
56
|
stdio: "inherit",
|
|
56
|
-
shell
|
|
57
|
+
// Windows command dispatch is more reliable through shell for *.cmd wrappers.
|
|
58
|
+
shell: isWindows,
|
|
57
59
|
env,
|
|
58
60
|
});
|
|
59
61
|
|