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

@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Extension point to add links to the repository cards from plug ins ([#1041](https://github.com/scm-manager/scm-manager/pull/1041))
### Fixed
- Build on windows ([#1048](https://github.com/scm-manager/scm-manager/issues/1048), [#1049](https://github.com/scm-manager/scm-manager/issues/1049), [#1056](https://github.com/scm-manager/scm-manager/pull/1056))
## 2.0.0-rc5 - 2020-03-12
### Added
- Added footer extension points for links and avatar

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