Merge pull request #34495 from microsoft/forceDts

Add forceDtsEmit flag to getEmitOutput
This commit is contained in:
Sheetal Nandi authored and GitHub committed 2019-10-16 08:14:47 -07:00
commit aaadb17afe
6 files changed
+48 -10

No files matched your search

+3 -1
View File
@@ -393,7 +393,9 @@ namespace ts {
declarationFilePath: string | undefined,
declarationMapPath: string | undefined,
relativeToBuildInfo: (path: string) => string) {
if (!sourceFileOrBundle || !declarationFilePath) {
if (!sourceFileOrBundle) return;
if (!declarationFilePath) {
if (emitOnlyDtsFiles || compilerOptions.emitDeclarationOnly) emitSkipped = true;
return;
}
const sourceFiles = isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles;