Force noImplicitUseStrict transpiler option for tsc-dev

This commit is contained in:
Hristo Deshev
2016-05-30 14:41:53 +03:00
parent 39e6f82f74
commit b10a3482ed
2 changed files with 5 additions and 5 deletions

View File

@ -114,15 +114,15 @@ var files = JSON.parse(fs.readFileSync("./tsconfig.json")).files;
var options = { var options = {
noEmitOnError: true, noEmitOnError: true,
noEmitHelpers: true, noEmitHelpers: true,
target: 1 /* ES5 */, target: ts.ScriptTarget.ES5,
module: 1 /* CommonJS */, module: ts.ModuleKind.CommonJS,
declaration: false, declaration: false,
noImplicitAny: false, noImplicitAny: false,
noImplicitUseStrict: true, noImplicitUseStrict: true,
experimentalDecorators: true experimentalDecorators: true
}; };
if (isTranspile) { if (isTranspile) {
transpile(files, { module: 1 /* CommonJS */ }); transpile(files, { module: ts.ModuleKind.CommonJS, noImplicitUseStrict: true });
} }
else { else {
compile(files, options); compile(files, options);

View File

@ -144,7 +144,7 @@ var options: ts.CompilerOptions = {
experimentalDecorators: true experimentalDecorators: true
}; };
if (isTranspile) { if (isTranspile) {
transpile(files, { module: ts.ModuleKind.CommonJS }); transpile(files, { module: ts.ModuleKind.CommonJS, noImplicitUseStrict: true });
} else { } else {
compile(files, options); compile(files, options);
} }