Skip to content

Commit

Permalink
fix: ignore tsBuildInfoFile compiler option (#26)
Browse files Browse the repository at this point in the history
`tsBuildInfoFile` is incompatible with both `composite` and `incremental` being set to false
  • Loading branch information
marian-c authored and Forbes Lindesay committed Aug 21, 2019
1 parent 1432be7 commit 9ce784a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/loadTsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@ export default function loadTsConfig(cwd: string = process.cwd()): any {
compilerOptions.composite = false;
}
compilerOptions.incremental = false;

// since composite and incremental are false, Typescript will not accept tsBuildInfoFile
// https://github.com/microsoft/TypeScript/blob/dcb763f62435ebb015e7fa405eb067de3254f217/src/compiler/program.ts#L2847
delete compilerOptions.tsBuildInfoFile;

return compilerOptions;
}

0 comments on commit 9ce784a

Please sign in to comment.