From b10a3482edd1524dbdd5d09f218d0b7768789628 Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Mon, 30 May 2016 14:41:53 +0300 Subject: [PATCH] Force noImplicitUseStrict transpiler option for tsc-dev --- build/tsc-dev.js | 6 +++--- build/tsc-dev.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/tsc-dev.js b/build/tsc-dev.js index 70b4d4fd1..bf3c6b738 100644 --- a/build/tsc-dev.js +++ b/build/tsc-dev.js @@ -114,15 +114,15 @@ var files = JSON.parse(fs.readFileSync("./tsconfig.json")).files; var options = { noEmitOnError: true, noEmitHelpers: true, - target: 1 /* ES5 */, - module: 1 /* CommonJS */, + target: ts.ScriptTarget.ES5, + module: ts.ModuleKind.CommonJS, declaration: false, noImplicitAny: false, noImplicitUseStrict: true, experimentalDecorators: true }; if (isTranspile) { - transpile(files, { module: 1 /* CommonJS */ }); + transpile(files, { module: ts.ModuleKind.CommonJS, noImplicitUseStrict: true }); } else { compile(files, options); diff --git a/build/tsc-dev.ts b/build/tsc-dev.ts index b47e3fbeb..c144e4638 100644 --- a/build/tsc-dev.ts +++ b/build/tsc-dev.ts @@ -144,7 +144,7 @@ var options: ts.CompilerOptions = { experimentalDecorators: true }; if (isTranspile) { - transpile(files, { module: ts.ModuleKind.CommonJS }); + transpile(files, { module: ts.ModuleKind.CommonJS, noImplicitUseStrict: true }); } else { compile(files, options); -} \ No newline at end of file +}