From 7fb5001bea0e18b91d9c1d66b831ac2c9575b7d4 Mon Sep 17 00:00:00 2001 From: StarsSail <152023695+wysha-object@users.noreply.github.com> Date: Wed, 29 Jul 2026 11:52:48 +0800 Subject: [PATCH] fix: enable shell option for child_process.spawn on Windows (#7619) * fix: enable shell option for Windows in runDevCommand * fix: enable shell option for Windows in runDevAnchor --- scripts/dev.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/dev.mjs b/scripts/dev.mjs index e65c98cd6..cd7a8e13b 100644 --- a/scripts/dev.mjs +++ b/scripts/dev.mjs @@ -191,6 +191,7 @@ export async function runDevAnchor(mode, dependencies = {}) { let inner try { inner = spawnChild(invocation.command, invocation.args, { + shell: platform === 'win32', env: invocation.env, detached: false, stdio: 'inherit', @@ -336,6 +337,7 @@ export async function runDevCommand(mode, dependencies = {}) { let child try { child = spawnChild(invocation.command, invocation.args, { + shell: platform === 'win32', env: invocation.env, detached: invocation.detached, stdio: