@iwsdk/cli 0.4.1 → 0.4.2
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/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/hzdb-telemetry.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -6436,6 +6436,8 @@ async function handleDevUp(options, io) {
|
|
|
6436
6436
|
detached: !foreground,
|
|
6437
6437
|
stdio: foreground ? 'inherit' : ['ignore', stdoutFd, stdoutFd],
|
|
6438
6438
|
env: process.env,
|
|
6439
|
+
// npm/pnpm/yarn are .cmd shims on Windows; Node cannot spawn them without a shell.
|
|
6440
|
+
shell: process.platform === 'win32',
|
|
6439
6441
|
});
|
|
6440
6442
|
const childExitPromise = waitForChildExit(child);
|
|
6441
6443
|
let childExit = null;
|
|
@@ -22703,6 +22705,8 @@ function hzdbTelemetry(args, clientVersion) {
|
|
|
22703
22705
|
}
|
|
22704
22706
|
const child = spawn('npx', [...globalArgs, ...args], {
|
|
22705
22707
|
stdio: 'ignore',
|
|
22708
|
+
// npx is a .cmd shim on Windows; Node cannot spawn it without a shell.
|
|
22709
|
+
shell: process.platform === 'win32',
|
|
22706
22710
|
});
|
|
22707
22711
|
child.on('error', () => { });
|
|
22708
22712
|
child.unref();
|