fix(core): update

This commit is contained in:
2020-06-01 19:37:11 +00:00
parent 4641cc7cad
commit 815008e881
5 changed files with 15 additions and 8 deletions

View File

@ -27,7 +27,7 @@ if (process.argv.includes('--nocache')) {
tsNode.register(defaultTsNodeOptions);
if (process.env.CLI_CALL_TSRUN) {
export const runCli = async () => {
// contents of argv array
// process.argv[0] -> node Executable
// process.argv[1] -> tsrun executable
@ -35,4 +35,4 @@ if (process.env.CLI_CALL_TSRUN) {
const pathToLoad = path.join(process.cwd(), pathToTsFile);
import(pathToLoad);
}
}