Check only for .d.ts files

This commit is contained in:
Sheetal Nandi 2019-06-21 14:16:40 -07:00
parent c97be16fa1
commit 746b01e577

View file

@ -2468,8 +2468,10 @@ namespace ts {
}
else {
forEach(resolvedRef.commandLine.fileNames, fileName => {
const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, host.useCaseSensitiveFileNames());
mapFromToProjectReferenceRedirectSource!.set(toPath(outputDts), fileName);
if (!fileExtensionIs(fileName, Extension.Dts) && hasTSFileExtension(fileName)) {
const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, host.useCaseSensitiveFileNames());
mapFromToProjectReferenceRedirectSource!.set(toPath(outputDts), fileName);
}
});
}
}