mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-08 16:42:10 +01:00
Merge pull request #1056 from scm-manager/bugfix/ui_build_on_windows
Bugfix/ui build on windows
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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