Skip to content

Commit

Permalink
fix: do not emit buildinfo file if outfile is specified (#614)
Browse files Browse the repository at this point in the history
In newer TypeScript versions there is an assert expression which throws an error if outFile is specified in the project configuration

✅ Closes: #608
  • Loading branch information
piotr-oles authored May 13, 2021
1 parent 6fccb20 commit f83ac29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/typescript-reporter/reporter/TypeScriptReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ function createTypeScriptReporter(configuration: TypeScriptReporterConfiguration
if (
configuration.mode !== 'readonly' &&
parsedConfiguration &&
parsedConfiguration.options.incremental
parsedConfiguration.options.incremental &&
!parsedConfiguration.options.outFile
) {
const program = builderProgram.getProgram();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit f83ac29

Please sign in to comment.