#1049 fix ui build on windows

This commit is contained in:
Sebastian Sdorra
2020-03-18 21:39:17 +01:00
parent 4f01a5199e
commit 49cc3ebbda

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);