This commit is contained in:
Kevin Leung
2020-03-11 22:17:03 +08:00
parent 835a74f98d
commit cfcb144c96
2 changed files with 4 additions and 4 deletions

View File

@@ -366,11 +366,11 @@ exports.getState = getState;
var Main = function() { };
Main.main = function() {
var version = __webpack_require__(470).getInput("lix-version");
var args = ["global","add","lix@" + version];
var args = ["-g","i","lix@" + version];
if(args == null) {
js_node_ChildProcess.spawnSync("yarn",{ shell : true, stdio : "inherit"});
js_node_ChildProcess.spawnSync("npm",{ shell : true, stdio : "inherit"});
} else {
js_node_ChildProcess.spawnSync("yarn",args,{ stdio : "inherit"});
js_node_ChildProcess.spawnSync("npm",args,{ stdio : "inherit"});
}
};
var js_node_ChildProcess = __webpack_require__(129);