Merge pull request #1056 from scm-manager/bugfix/ui_build_on_windows

Bugfix/ui build on windows
This commit is contained in:
eheimbuch
2020-03-19 09:24:09 +01:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -1,7 +1,10 @@
const { spawnSync } = require("child_process");
const os = require("os");
const yarnCmd = os.platform() === "win32" ? "yarn.cmd" : "yarn";
const yarn = args => {
const result = spawnSync("yarn", args, { stdio: "inherit" });
const result = spawnSync(yarnCmd, args, { stdio: "inherit" });
if (result.error) {
console.log("could not start yarn command:", result.error);
process.exit(2);