Skip to content

Commit 3416d19

Browse files
CLI: Update spawn options in proxy.ts to support Windows
1 parent 87c3757 commit 3416d19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/lib/cli/src/proxy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (['dev', 'build'].includes(args[0])) {
1212
? [`create-storybook@${versions.storybook}`, ...args.slice(1)]
1313
: [`@storybook/cli@${versions.storybook}`, ...args];
1414
const command = ['npx', '--yes', ...proxiedArgs];
15-
const child = spawn(command[0], command.slice(1), { stdio: 'inherit' });
15+
const child = spawn(command[0], command.slice(1), { stdio: 'inherit', shell: true });
1616
child.on('exit', (code) => {
1717
if (code != null) {
1818
process.exit(code);

0 commit comments

Comments
 (0)