File tree 2 files changed +2
-3
lines changed 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1537,8 +1537,7 @@ namespace ts {
1537
1537
const emitFilePath = toPath ( emitFileName , currentDirectory , getCanonicalFileName ) ;
1538
1538
// Report error if the output overwrites input file
1539
1539
if ( filesByName . contains ( emitFilePath ) ) {
1540
- const sourceFile = filesByName . get ( emitFilePath ) ;
1541
- if ( options . noEmitOverwriteForJsFiles && isSourceFileJavaScript ( sourceFile ) ) {
1540
+ if ( options . noEmitOverwritenFiles && ! options . out && ! options . outDir && ! options . outFile ) {
1542
1541
blockEmittingOfFile ( emitFileName ) ;
1543
1542
}
1544
1543
else {
Original file line number Diff line number Diff line change @@ -2984,7 +2984,7 @@ namespace ts {
2984
2984
moduleResolution ?: ModuleResolutionKind ;
2985
2985
newLine ?: NewLineKind ;
2986
2986
noEmit ?: boolean ;
2987
- /*@internal */ noEmitOverwriteForJsFiles ?: boolean ;
2987
+ /*@internal */ noEmitOverwritenFiles ?: boolean ;
2988
2988
noEmitHelpers ?: boolean ;
2989
2989
noEmitOnError ?: boolean ;
2990
2990
noErrorTruncation ?: boolean ;
You can’t perform that action at this time.
0 commit comments