diff --git a/dist/cjs/client/stdio.js b/dist/cjs/client/stdio.js index 2ada8771c5f76673b5021d6453c6bdd7e0b88013..89f6ea9ca7de86294d3d966f3454b98e19bfe534 100644 --- a/dist/cjs/client/stdio.js +++ b/dist/cjs/client/stdio.js @@ -68,7 +68,7 @@ class StdioClientTransport { this._process = (0, node_child_process_1.spawn)(this._serverParams.command, (_a = this._serverParams.args) !== null && _a !== void 0 ? _a : [], { env: (_b = this._serverParams.env) !== null && _b !== void 0 ? _b : getDefaultEnvironment(), stdio: ["pipe", "pipe", (_c = this._serverParams.stderr) !== null && _c !== void 0 ? _c : "inherit"], - shell: false, + shell: process.platform === 'win32' ? true : false, signal: this._abortController.signal, windowsHide: node_process_1.default.platform === "win32" && isElectron(), cwd: this._serverParams.cwd, diff --git a/dist/esm/client/stdio.js b/dist/esm/client/stdio.js index 387c982fd40fd8db9790a78e1a05c9ecb81501c0..7b7e60a306bca73149609015a27e904a0a68ca02 100644 --- a/dist/esm/client/stdio.js +++ b/dist/esm/client/stdio.js @@ -61,7 +61,7 @@ export class StdioClientTransport { this._process = spawn(this._serverParams.command, (_a = this._serverParams.args) !== null && _a !== void 0 ? _a : [], { env: (_b = this._serverParams.env) !== null && _b !== void 0 ? _b : getDefaultEnvironment(), stdio: ["pipe", "pipe", (_c = this._serverParams.stderr) !== null && _c !== void 0 ? _c : "inherit"], - shell: false, + shell: process.platform === 'win32' ? true : false, signal: this._abortController.signal, windowsHide: process.platform === "win32" && isElectron(), cwd: this._serverParams.cwd,