Fix outFile check (#44277)

This commit is contained in:
Sheetal Nandi
2021-05-26 15:57:30 -07:00
committed by GitHub
parent 54fbeb511d
commit 3442d311cf

View File

@@ -473,7 +473,7 @@ namespace ts {
// We want to ignore emit file check if file is not going to be emitted next to source file
// In that case we follow config file inclusion rules
if (options.outFile || options.outDir) return false;
if (outFile(options) || options.outDir) return false;
// File if emitted next to input needs to be ignored
if (fileExtensionIs(fileOrDirectoryPath, Extension.Dts)) {