.d.ts files don't have outputs

This commit is contained in:
Ryan Cavanaugh 2018-07-02 10:15:13 -07:00
parent 38d649111b
commit 64e6b7669b
2 changed files with 3 additions and 1 deletions

View File

@ -295,7 +295,8 @@ namespace ts {
}
function getOutputFileNames(inputFileName: string, configFile: ParsedCommandLine): ReadonlyArray<string> {
if (configFile.options.outFile) {
// outFile is handled elsewhere; .d.ts files don't generate outputs
if (configFile.options.outFile || fileExtensionIs(inputFileName, Extension.Dts)) {
return emptyArray;
}

View File

@ -0,0 +1 @@
declare const dts: any;