From c5f5320ef207099c8aeb6708c3a7c3db4584e44f Mon Sep 17 00:00:00 2001 From: Bastien Date: Fri, 7 Jun 2024 21:13:39 +0200 Subject: [PATCH] fix(web): add shell true (#26411) Add option `shell: true` to allow child process on Windows Closes #26161 --- packages/web/src/executors/file-server/file-server.impl.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/web/src/executors/file-server/file-server.impl.ts b/packages/web/src/executors/file-server/file-server.impl.ts index 47ac6b734c225..09badb041e6eb 100644 --- a/packages/web/src/executors/file-server/file-server.impl.ts +++ b/packages/web/src/executors/file-server/file-server.impl.ts @@ -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(