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