fix(core): update

This commit is contained in:
2018-06-05 23:40:59 +02:00
parent dbbcd3d0b5
commit ea44ec9a14
2 changed files with 10 additions and 6 deletions

View File

@ -3,9 +3,11 @@ import * as path from 'path';
tsNode.register({
compilerOptions: {
lib: ['es2016', 'es2017']
lib: [ 'es2016', 'es2017' ]
}
});
const pathToLoad = path.join(process.cwd(), process.argv.pop());
import(pathToLoad);
if (process.env.CLI_CALL) {
const pathToLoad = path.join(process.cwd(), process.argv.pop());
import(pathToLoad);
}