Skip to content

Commit f83ac29

Browse files
authored
fix: do not emit buildinfo file if outfile is specified (#614)
In newer TypeScript versions there is an assert expression which throws an error if outFile is specified in the project configuration ✅ Closes: #608
1 parent 6fccb20 commit f83ac29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/typescript-reporter/reporter/TypeScriptReporter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ function createTypeScriptReporter(configuration: TypeScriptReporterConfiguration
100100
if (
101101
configuration.mode !== 'readonly' &&
102102
parsedConfiguration &&
103-
parsedConfiguration.options.incremental
103+
parsedConfiguration.options.incremental &&
104+
!parsedConfiguration.options.outFile
104105
) {
105106
const program = builderProgram.getProgram();
106107
// eslint-disable-next-line @typescript-eslint/no-explicit-any

0 commit comments

Comments
 (0)