From bc10fb7f8528adb952c5ea84e20bba7c22060ae2 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 17 Apr 2024 13:05:02 +0100 Subject: [PATCH] Other cases Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- hak/keytar/build.ts | 1 + scripts/hak/link.ts | 2 ++ scripts/set-version.ts | 3 +++ 3 files changed, 6 insertions(+) diff --git a/hak/keytar/build.ts b/hak/keytar/build.ts index ec7c8b5a..0920b76d 100644 --- a/hak/keytar/build.ts +++ b/hak/keytar/build.ts @@ -32,6 +32,7 @@ export default async function buildKeytar(hakEnv: HakEnv, moduleInfo: Dependency cwd: moduleInfo.moduleBuildDir, env, stdio: "inherit", + shell: true, }, ); proc.on("exit", (code) => { diff --git a/scripts/hak/link.ts b/scripts/hak/link.ts index 05fd4e62..abe0b015 100644 --- a/scripts/hak/link.ts +++ b/scripts/hak/link.ts @@ -53,6 +53,7 @@ export default async function link(hakEnv: HakEnv, moduleInfo: DependencyInfo): const proc = childProcess.spawn(yarnCmd, ["link"], { cwd: moduleInfo.moduleOutDir, stdio: "inherit", + shell: true, }); proc.on("exit", (code) => { code ? reject(code) : resolve(); @@ -63,6 +64,7 @@ export default async function link(hakEnv: HakEnv, moduleInfo: DependencyInfo): const proc = childProcess.spawn(yarnCmd, ["link", moduleInfo.name], { cwd: hakEnv.projectRoot, stdio: "inherit", + shell: true, }); proc.on("exit", (code) => { code ? reject(code) : resolve(); diff --git a/scripts/set-version.ts b/scripts/set-version.ts index 31083958..8056e676 100755 --- a/scripts/set-version.ts +++ b/scripts/set-version.ts @@ -32,6 +32,9 @@ export async function setPackageVersion(ver: string): Promise { "--new-version", ver, ], + { + shell: true, + }, (err) => { if (err) { reject(err);