Do not fork ui-script commands

Forking of the commands could lead to open processes,
even if the parent was stopped with ctrl+c.
This commit is contained in:
Sebastian Sdorra
2021-01-13 08:32:33 +01:00
committed by René Pfeuffer
parent 0a4b5d0439
commit d8a04a1113
6 changed files with 90 additions and 95 deletions

View File

@@ -23,13 +23,13 @@
*/
const lerna = require("../lerna");
const args = process.argv.slice(2);
module.exports = args => {
if (args.length < 1) {
console.log("usage ui-scripts version <new-version>");
process.exit(1);
}
if (args.length < 1) {
console.log("usage ui-scripts version <new-version>");
process.exit(1);
}
const version = args[0];
const version = args[0];
lerna.version(version);
lerna.version(version);
};