Skip to content

Commit 9ce784a

Browse files
marian-cForbes Lindesay
authored and
Forbes Lindesay
committed
fix: ignore tsBuildInfoFile compiler option (#26)
`tsBuildInfoFile` is incompatible with both `composite` and `incremental` being set to false
1 parent 1432be7 commit 9ce784a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/loadTsConfig.ts

+5
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,10 @@ export default function loadTsConfig(cwd: string = process.cwd()): any {
1717
compilerOptions.composite = false;
1818
}
1919
compilerOptions.incremental = false;
20+
21+
// since composite and incremental are false, Typescript will not accept tsBuildInfoFile
22+
// https://github.com/microsoft/TypeScript/blob/dcb763f62435ebb015e7fa405eb067de3254f217/src/compiler/program.ts#L2847
23+
delete compilerOptions.tsBuildInfoFile;
24+
2025
return compilerOptions;
2126
}

0 commit comments

Comments
 (0)