Update hak fetch script for compatibility with latest NodeJS Security Release

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-04-17 12:41:06 +01:00
parent 3c8bbb5b1a
commit 8ba0b7d8c4
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D

View File

@ -44,6 +44,7 @@ export default async function fetch(hakEnv: HakEnv, moduleInfo: DependencyInfo):
const proc = childProcess.spawn(hakEnv.isWin() ? "yarn.cmd" : "yarn", ["install", "--ignore-scripts"], {
stdio: "inherit",
cwd: moduleInfo.moduleBuildDir,
shell: true,
});
proc.on("exit", (code) => {
code ? reject(code) : resolve();