fix(core): update
This commit is contained in:
parent
460babd675
commit
d5c63cd24c
7
dist/index.js
vendored
7
dist/index.js
vendored
@ -5,14 +5,15 @@ const tsNode = require("ts-node");
|
|||||||
const defaultTsNodeOptions = {
|
const defaultTsNodeOptions = {
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
lib: ['es2016', 'es2017'],
|
lib: ['es2016', 'es2017'],
|
||||||
target: 'es2015',
|
target: 'es2017',
|
||||||
experimentalDecorators: true
|
experimentalDecorators: true
|
||||||
},
|
},
|
||||||
skipIgnore: true
|
skipIgnore: true
|
||||||
};
|
};
|
||||||
if (process.argv.includes('--web')) {
|
if (process.argv.includes('--web')) {
|
||||||
const previousCompilerOptions = defaultTsNodeOptions.compilerOptions;
|
const previousCompilerOptions = defaultTsNodeOptions.compilerOptions;
|
||||||
defaultTsNodeOptions.compilerOptions = Object.assign({}, previousCompilerOptions, { lib: [...previousCompilerOptions.lib, 'dom'] });
|
defaultTsNodeOptions.compilerOptions = Object.assign({}, previousCompilerOptions, { lib: ['es2016', 'es2017', 'dom'], target: 'es2015' // Script Target should be a string -> 2 is for ES2015
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (process.argv.includes('--nocache')) {
|
if (process.argv.includes('--nocache')) {
|
||||||
// currently caching is not used
|
// currently caching is not used
|
||||||
@ -26,4 +27,4 @@ if (process.env.CLI_CALL_TSRUN) {
|
|||||||
const pathToLoad = path.join(process.cwd(), pathToTsFile);
|
const pathToLoad = path.join(process.cwd(), pathToTsFile);
|
||||||
Promise.resolve().then(() => require(pathToLoad));
|
Promise.resolve().then(() => require(pathToLoad));
|
||||||
}
|
}
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QixrQ0FBa0M7QUF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MsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLEVBQUUsRUFBRSxZQUFZLENBQUMsQ0FBQztJQUMxRCxxQ0FBTyxVQUFVLEdBQUU7Q0FDcEIifQ==
|
@ -5,7 +5,7 @@ import { CompilerOptions } from 'typescript';
|
|||||||
const defaultTsNodeOptions: tsNode.Options = {
|
const defaultTsNodeOptions: tsNode.Options = {
|
||||||
compilerOptions: <CompilerOptions>{
|
compilerOptions: <CompilerOptions>{
|
||||||
lib: ['es2016', 'es2017'],
|
lib: ['es2016', 'es2017'],
|
||||||
target: <any>'es2015', // Script Target should be a string -> 2 is for ES2015
|
target: <any>'es2017', // Script Target should be a string -> 2 is for ES2015
|
||||||
experimentalDecorators: true
|
experimentalDecorators: true
|
||||||
},
|
},
|
||||||
skipIgnore: true
|
skipIgnore: true
|
||||||
@ -15,7 +15,8 @@ if (process.argv.includes('--web')) {
|
|||||||
const previousCompilerOptions = defaultTsNodeOptions.compilerOptions as CompilerOptions;
|
const previousCompilerOptions = defaultTsNodeOptions.compilerOptions as CompilerOptions;
|
||||||
defaultTsNodeOptions.compilerOptions = {
|
defaultTsNodeOptions.compilerOptions = {
|
||||||
...previousCompilerOptions,
|
...previousCompilerOptions,
|
||||||
lib: [...previousCompilerOptions.lib, 'dom']
|
lib: ['es2016', 'es2017', 'dom'],
|
||||||
|
target: <any>'es2015' // Script Target should be a string -> 2 is for ES2015
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user