spawn in shell in local scripts
This commit is contained in:
parent
b52dc74d9b
commit
0620d29880
@ -11,13 +11,17 @@ import { is } from "tsafe/is";
|
|||||||
{
|
{
|
||||||
const dCompleted = new Deferred<void>();
|
const dCompleted = new Deferred<void>();
|
||||||
|
|
||||||
const child = child_process.spawn("docker", [
|
const child = child_process.spawn(
|
||||||
|
"docker",
|
||||||
|
[
|
||||||
...["exec", containerName],
|
...["exec", containerName],
|
||||||
...["/opt/keycloak/bin/kc.sh", "export"],
|
...["/opt/keycloak/bin/kc.sh", "export"],
|
||||||
...["--dir", "/tmp"],
|
...["--dir", "/tmp"],
|
||||||
...["--realm", "myrealm"],
|
...["--realm", "myrealm"],
|
||||||
...["--users", "realm_file"]
|
...["--users", "realm_file"]
|
||||||
]);
|
],
|
||||||
|
{ shell: true }
|
||||||
|
);
|
||||||
|
|
||||||
let output = "";
|
let output = "";
|
||||||
|
|
||||||
|
@ -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));
|
child.stdout.on("data", data => process.stdout.write(data));
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ export function startRebuildOnSrcChange() {
|
|||||||
|
|
||||||
const dCompleted = new Deferred<void>();
|
const dCompleted = new Deferred<void>();
|
||||||
|
|
||||||
const child = child_process.spawn("yarn", ["build"]);
|
const child = child_process.spawn("yarn", ["build"], { shell: true });
|
||||||
|
|
||||||
child.stdout.on("data", data => process.stdout.write(data));
|
child.stdout.on("data", data => process.stdout.write(data));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user