mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-30 01:55:58 +01:00
#1049 fix ui build on windows
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user