(fileName, options, currentDirectory, commonSourceDirectory, getCanonicalFileName)
| 18420 | } |
| 18421 | ts.getDeclarationEmitOutputFilePath = getDeclarationEmitOutputFilePath; |
| 18422 | function getDeclarationEmitOutputFilePathWorker(fileName, options, currentDirectory, commonSourceDirectory, getCanonicalFileName) { |
| 18423 | var outputDir = options.declarationDir || options.outDir; // Prefer declaration folder if specified |
| 18424 | var path = outputDir |
| 18425 | ? getSourceFilePathInNewDirWorker(fileName, outputDir, currentDirectory, commonSourceDirectory, getCanonicalFileName) |
| 18426 | : fileName; |
| 18427 | var declarationExtension = getDeclarationEmitExtensionForPath(path); |
| 18428 | return removeFileExtension(path) + declarationExtension; |
| 18429 | } |
| 18430 | ts.getDeclarationEmitOutputFilePathWorker = getDeclarationEmitOutputFilePathWorker; |
| 18431 | function getDeclarationEmitExtensionForPath(path) { |
| 18432 | return ts.fileExtensionIsOneOf(path, [".mjs" /* Extension.Mjs */, ".mts" /* Extension.Mts */]) ? ".d.mts" /* Extension.Dmts */ : |
no test coverage detected