@iwsdk/cli 0.4.0 → 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 +5 -1
- 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 +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5846,7 +5846,7 @@ function inferRuntimeIssueCause(message, browser, explicitCause) {
|
|
|
5846
5846
|
async function trySendRuntimeCommand(protocol, port, method, params, timeoutMs, browser) {
|
|
5847
5847
|
return new Promise((resolve, reject) => {
|
|
5848
5848
|
const requestId = `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
5849
|
-
const wsUrl = `${protocol}://
|
|
5849
|
+
const wsUrl = `${protocol}://127.0.0.1:${port}/__iwer_mcp`;
|
|
5850
5850
|
const ws = new WebSocket$1(wsUrl, {
|
|
5851
5851
|
rejectUnauthorized: false,
|
|
5852
5852
|
});
|
|
@@ -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();
|