From d7f1852657371223790988047081428ae09a5a84 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 5 Apr 2018 09:38:08 -0700 Subject: [PATCH] use `--types` to avoid compiling `@types` packages when testing the generated file --- src/test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test.ts b/src/test.ts index 4ec47074c..a61b9bf95 100644 --- a/src/test.ts +++ b/src/test.ts @@ -26,7 +26,7 @@ function compareToBaselines() { function compileGeneratedFile(file: string) { try { - child_process.execSync(`node ${tscPath} --strict --lib es5 --skipLibCheck --noEmit ${path.join(outputFolder, file)}`); + child_process.execSync(`node ${tscPath} --strict --lib es5 --types --noEmit ${path.join(outputFolder, file)}`); } catch (e) { console.error(`Test failed: could not compile '${file}':`); console.error(e.stdout.toString());