We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c97be16 commit 746b01eCopy full SHA for 746b01e
src/compiler/program.ts
@@ -2468,8 +2468,10 @@ namespace ts {
2468
}
2469
else {
2470
forEach(resolvedRef.commandLine.fileNames, fileName => {
2471
- const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, host.useCaseSensitiveFileNames());
2472
- mapFromToProjectReferenceRedirectSource!.set(toPath(outputDts), fileName);
+ if (!fileExtensionIs(fileName, Extension.Dts) && hasTSFileExtension(fileName)) {
+ const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, host.useCaseSensitiveFileNames());
2473
+ mapFromToProjectReferenceRedirectSource!.set(toPath(outputDts), fileName);
2474
+ }
2475
});
2476
2477
0 commit comments