fix(web): add shell true (#26411)

Add option `shell: true` to allow child process on Windows

Closes #26161
This commit is contained in:
Bastien 2024-06-07 21:13:39 +02:00 committed by GitHub
parent 8891bdc3ab
commit c5f5320ef2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,6 +170,8 @@ export default async function* fileServerExecutor(
const args = getBuildTargetCommand(options, context);
execFileSync(pmCmd, args, {
stdio: [0, 1, 2],
shell: true,
windowsHide: true,
});
} catch {
throw new Error(