mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
#1049 fix ui build on windows
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
const { spawnSync } = require("child_process");
|
const { spawnSync } = require("child_process");
|
||||||
|
const os = require("os");
|
||||||
|
|
||||||
|
const yarnCmd = os.platform() === "win32" ? "yarn.cmd" : "yarn";
|
||||||
|
|
||||||
const yarn = args => {
|
const yarn = args => {
|
||||||
const result = spawnSync("yarn", args, { stdio: "inherit" });
|
const result = spawnSync(yarnCmd, args, { stdio: "inherit" });
|
||||||
if (result.error) {
|
if (result.error) {
|
||||||
console.log("could not start yarn command:", result.error);
|
console.log("could not start yarn command:", result.error);
|
||||||
process.exit(2);
|
process.exit(2);
|
||||||
|
|||||||
Reference in New Issue
Block a user