mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
.d.ts files don't have outputs
This commit is contained in:
parent
38d649111b
commit
64e6b7669b
@ -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;
|
||||
}
|
||||
|
||||
|
||||
1
tests/projects/sample1/core/some_decl.d.ts
vendored
Normal file
1
tests/projects/sample1/core/some_decl.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
declare const dts: any;
|
||||
Loading…
x
Reference in New Issue
Block a user