spawn in shell in local scripts

This commit is contained in:
Joseph Garrone
2024-06-15 01:06:06 +02:00
parent b52dc74d9b
commit 0620d29880
3 changed files with 15 additions and 9 deletions

View File

@ -13,7 +13,9 @@ run(`node ${join("dist", "bin", "main.js")} copy-keycloak-resources-to-public`,
});
{
const child = child_process.spawn("npx", ["start-storybook", "-p", "6006"]);
const child = child_process.spawn("npx", ["start-storybook", "-p", "6006"], {
shell: true
});
child.stdout.on("data", data => process.stdout.write(data));