mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-22 00:31:30 -05:00
Merge pull request #34495 from microsoft/forceDts
Add forceDtsEmit flag to getEmitOutput
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user