@@ -1651,7 +1651,7 @@ namespace ts {
1651
1651
}
1652
1652
1653
1653
function emitBuildInfo ( writeFileCallback ?: WriteFileCallback ) : EmitResult {
1654
- Debug . assert ( ! outFile ( options ) ) ;
1654
+ Debug . assert ( ! outFileWithoutPersistResolutions ( options ) ) ;
1655
1655
tracing . begin ( tracing . Phase . Emit , "emitBuildInfo" , { } ) ;
1656
1656
performance . mark ( "beforeEmit" ) ;
1657
1657
const emitResult = emitFiles (
@@ -3849,7 +3849,7 @@ namespace ts {
3849
3849
if ( options . noEmit ) {
3850
3850
// Cache the semantic diagnostics
3851
3851
program . getSemanticDiagnostics ( sourceFile , cancellationToken ) ;
3852
- return sourceFile || outFile ( options ) ?
3852
+ return sourceFile || outFileWithoutPersistResolutions ( options ) ?
3853
3853
emitSkippedWithNoDiagnostics :
3854
3854
program . emitBuildInfo ( writeFile , cancellationToken ) ;
3855
3855
}
@@ -3871,7 +3871,7 @@ namespace ts {
3871
3871
3872
3872
if ( ! diagnostics . length ) return undefined ;
3873
3873
let emittedFiles : string [ ] | undefined ;
3874
- if ( ! sourceFile && ! outFile ( options ) ) {
3874
+ if ( ! sourceFile && ! outFileWithoutPersistResolutions ( options ) ) {
3875
3875
const emitResult = program . emitBuildInfo ( writeFile , cancellationToken ) ;
3876
3876
if ( emitResult . diagnostics ) diagnostics = [ ...diagnostics , ...emitResult . diagnostics ] ;
3877
3877
emittedFiles = emitResult . emittedFiles ;
0 commit comments