Debug
This commit is contained in:
@@ -373,15 +373,18 @@ Main.main = function() {
|
||||
js_node_ChildProcess.spawnSync("yarn",args,{ stdio : "inherit"});
|
||||
}
|
||||
var path = StringTools.replace(js_node_ChildProcess.execSync("yarn global bin").toString(),"\n","");
|
||||
console.log("src/Main.hx:11:",process.env["PATH"]);
|
||||
core.addPath(path);
|
||||
console.log("src/Main.hx:12:",js_node_Fs.readdirSync(path));
|
||||
console.log("src/Main.hx:13:",process.env["PATH"]);
|
||||
core.addPath(path);
|
||||
console.log("src/Main.hx:15:",process.env["PATH"]);
|
||||
console.log("src/Main.hx:18:",js_node_ChildProcess.execSync("lix").toString());
|
||||
};
|
||||
var StringTools = function() { };
|
||||
StringTools.replace = function(s,sub,by) {
|
||||
return s.split(sub).join(by);
|
||||
};
|
||||
var js_node_ChildProcess = __webpack_require__(129);
|
||||
var js_node_Fs = __webpack_require__(747);
|
||||
Main.main();
|
||||
})({});
|
||||
|
||||
@@ -393,6 +396,13 @@ Main.main();
|
||||
|
||||
module.exports = require("path");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 747:
|
||||
/***/ (function(module) {
|
||||
|
||||
module.exports = require("fs");
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
@@ -1,3 +1,4 @@
|
||||
import sys.FileSystem;
|
||||
import js.node.ChildProcess;
|
||||
import js.node.Buffer;
|
||||
using StringTools;
|
||||
@@ -8,8 +9,12 @@ class Main {
|
||||
var version = core.getInput('lix-version');
|
||||
Sys.command('yarn', ['global', 'add', 'lix@$version']);
|
||||
var path = (ChildProcess.execSync('yarn global bin'):Buffer).toString().replace('\n', '');
|
||||
trace(FileSystem.readDirectory(path));
|
||||
trace(Sys.getEnv("PATH"));
|
||||
core.addPath(path);
|
||||
trace(Sys.getEnv("PATH"));
|
||||
|
||||
|
||||
trace((ChildProcess.execSync('lix'):Buffer).toString());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user