fix(core): update

This commit is contained in:
2021-06-23 15:26:55 +02:00
parent 45bba88f46
commit f8736d3556
12 changed files with 2044 additions and 534 deletions

View File

@ -7,9 +7,9 @@ const defaultTsNodeOptions: tsNode.CreateOptions = {
lib: ['es2017'],
target: <any>'es2017', // Script Target should be a string -> 2 is for ES2015
experimentalDecorators: true,
esModuleInterop: true
esModuleInterop: true,
} as CompilerOptions,
skipIgnore: true
skipIgnore: true,
};
if (process.argv.includes('--web')) {
@ -17,7 +17,7 @@ if (process.argv.includes('--web')) {
defaultTsNodeOptions.compilerOptions = {
...previousCompilerOptions,
lib: ['es2016', 'es2017', 'dom'],
target: <any>'es2017' // Script Target should be a string -> 2 is for ES2015
target: <any>'es2017', // Script Target should be a string -> 2 is for ES2015
};
}
@ -34,5 +34,6 @@ export const runCli = async () => {
const pathToTsFile = process.argv[2];
const pathToLoad = path.join(process.cwd(), pathToTsFile);
process.argv.shift();
import(pathToLoad);
};