Skip to content

Commit

Permalink
fix(core): ensure execoFile process runs with shell
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Mar 22, 2022
1 parent 9229393 commit ce0df8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/web/src/executors/file-server/file-server.impl.ts
Expand Up @@ -118,6 +118,7 @@ export default async function* fileServerExecutor(
const [cmd, ...args] = getBuildTargetCommand(options);
execFileSync(cmd, args, {
stdio: [0, 1, 2],
shell: true,
});
} catch {}
running = false;
Expand All @@ -134,6 +135,7 @@ export default async function* fileServerExecutor(

const serve = execFile('npx', ['http-server', outputPath, ...args], {
cwd: context.root,
shell: true,
env: {
FORCE_COLOR: 'true',
...process.env,
Expand Down

0 comments on commit ce0df8c

Please sign in to comment.