fix(core): update

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

8
dist/index.js vendored
View File

@ -7,6 +7,8 @@ tsNode.register({
lib: ['es2016', 'es2017'] lib: ['es2016', 'es2017']
} }
}); });
const pathToLoad = path.join(process.cwd(), process.argv.pop()); if (process.env.CLI_CALL) {
Promise.resolve().then(() => require(pathToLoad)); const pathToLoad = path.join(process.cwd(), process.argv.pop());
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtDQUFrQztBQUNsQyw2QkFBNkI7QUFFN0IsTUFBTSxDQUFDLFFBQVEsQ0FBQztJQUNkLGVBQWUsRUFBRTtRQUNmLEdBQUcsRUFBRSxDQUFDLFFBQVEsRUFBRSxRQUFRLENBQUM7S0FDMUI7Q0FDRixDQUFDLENBQUM7QUFFSCxNQUFNLFVBQVUsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLEVBQUUsRUFBRSxPQUFPLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUM7QUFDaEUscUNBQU8sVUFBVSxHQUFFIn0= Promise.resolve().then(() => require(pathToLoad));
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtDQUFrQztBQUNsQyw2QkFBNkI7QUFFN0IsTUFBTSxDQUFDLFFBQVEsQ0FBQztJQUNkLGVBQWUsRUFBRTtRQUNmLEdBQUcsRUFBRSxDQUFFLFFBQVEsRUFBRSxRQUFRLENBQUU7S0FDNUI7Q0FDRixDQUFDLENBQUM7QUFFSCxJQUFJLE9BQU8sQ0FBQyxHQUFHLENBQUMsUUFBUSxFQUFFO0lBQ3hCLE1BQU0sVUFBVSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLEdBQUcsRUFBRSxFQUFFLE9BQU8sQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQztJQUNoRSxxQ0FBTyxVQUFVLEdBQUU7Q0FDcEIifQ==

View File

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