fix(typescript): add experimentalDecorators = true to CompilerOptions

This commit is contained in:
2018-07-09 00:00:07 +02:00
parent c603ae0c87
commit 7e8fe1bcba
3 changed files with 7 additions and 4 deletions

View File

@ -1,10 +1,12 @@
import * as path from 'path';
import * as tsNode from 'ts-node';
import { CompilerOptions } from 'typescript';
const defaultTsNodeOptions: tsNode.Options = {
compilerOptions: {
compilerOptions: <CompilerOptions>{
lib: ['es2016', 'es2017'],
target: 'es2015'
target: <any>'es2015', // Script Target should be a string -> 2 is for ES2015
experimentalDecorators: true
},
skipIgnore: true,
cacheDirectory: path.join(__dirname, '../tscache')