Merge 4e60ecd8b2 into da71eaebd2
This commit is contained in:
commit
5728601c48
@ -102,16 +102,24 @@ if (!runner) {
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
const script =
|
let script = null
|
||||||
action === "install"
|
|
||||||
? null
|
switch(action) {
|
||||||
: action === "dev"
|
case "install":
|
||||||
? "dev"
|
script = "install"
|
||||||
: action === "build"
|
break;
|
||||||
? "build"
|
case "dev":
|
||||||
: action === "test"
|
script = "dev"
|
||||||
? "test"
|
break;
|
||||||
: null;
|
case "build":
|
||||||
|
script = "build"
|
||||||
|
break;
|
||||||
|
case "test":
|
||||||
|
script = "test"
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
script = null
|
||||||
|
}
|
||||||
|
|
||||||
if (action !== "install" && !script) {
|
if (action !== "install" && !script) {
|
||||||
usage();
|
usage();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user