Skip to content

Commit

Permalink
CLI: Update spawn options in proxy.ts to support Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Aug 28, 2024
1 parent 87c3757 commit 3416d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/cli/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (['dev', 'build'].includes(args[0])) {
? [`create-storybook@${versions.storybook}`, ...args.slice(1)]
: [`@storybook/cli@${versions.storybook}`, ...args];
const command = ['npx', '--yes', ...proxiedArgs];
const child = spawn(command[0], command.slice(1), { stdio: 'inherit' });
const child = spawn(command[0], command.slice(1), { stdio: 'inherit', shell: true });
child.on('exit', (code) => {
if (code != null) {
process.exit(code);
Expand Down

0 comments on commit 3416d19

Please sign in to comment.