fix(core): update
This commit is contained in:
parent
dbbcd3d0b5
commit
ea44ec9a14
8
dist/index.js
vendored
8
dist/index.js
vendored
@ -7,6 +7,8 @@ tsNode.register({
|
||||
lib: ['es2016', 'es2017']
|
||||
}
|
||||
});
|
||||
const pathToLoad = path.join(process.cwd(), process.argv.pop());
|
||||
Promise.resolve().then(() => require(pathToLoad));
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtDQUFrQztBQUNsQyw2QkFBNkI7QUFFN0IsTUFBTSxDQUFDLFFBQVEsQ0FBQztJQUNkLGVBQWUsRUFBRTtRQUNmLEdBQUcsRUFBRSxDQUFDLFFBQVEsRUFBRSxRQUFRLENBQUM7S0FDMUI7Q0FDRixDQUFDLENBQUM7QUFFSCxNQUFNLFVBQVUsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLEVBQUUsRUFBRSxPQUFPLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUM7QUFDaEUscUNBQU8sVUFBVSxHQUFFIn0=
|
||||
if (process.env.CLI_CALL) {
|
||||
const pathToLoad = path.join(process.cwd(), process.argv.pop());
|
||||
Promise.resolve().then(() => require(pathToLoad));
|
||||
}
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtDQUFrQztBQUNsQyw2QkFBNkI7QUFFN0IsTUFBTSxDQUFDLFFBQVEsQ0FBQztJQUNkLGVBQWUsRUFBRTtRQUNmLEdBQUcsRUFBRSxDQUFFLFFBQVEsRUFBRSxRQUFRLENBQUU7S0FDNUI7Q0FDRixDQUFDLENBQUM7QUFFSCxJQUFJLE9BQU8sQ0FBQyxHQUFHLENBQUMsUUFBUSxFQUFFO0lBQ3hCLE1BQU0sVUFBVSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLEdBQUcsRUFBRSxFQUFFLE9BQU8sQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQztJQUNoRSxxQ0FBTyxVQUFVLEdBQUU7Q0FDcEIifQ==
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user