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
This commit is contained in:
StarsSail
2026-07-29 03:52:48 +00:00
committed by GitHub
parent 593ac07f03
commit 7fb5001bea
+2
View File
@@ -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: