Skip to content

Commit d7f1852

Browse files
authored
use --types to avoid compiling @types packages when testing the generated file
1 parent c3d4f8a commit d7f1852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function compareToBaselines() {
2626

2727
function compileGeneratedFile(file: string) {
2828
try {
29-
child_process.execSync(`node ${tscPath} --strict --lib es5 --skipLibCheck --noEmit ${path.join(outputFolder, file)}`);
29+
child_process.execSync(`node ${tscPath} --strict --lib es5 --types --noEmit ${path.join(outputFolder, file)}`);
3030
} catch (e) {
3131
console.error(`Test failed: could not compile '${file}':`);
3232
console.error(e.stdout.toString());

0 commit comments

Comments
 (0)