提交 1b6cc91a 编写于 作者: fxy060608's avatar fxy060608

chore: 更新 typescript

上级 8b52002d
......@@ -18632,6 +18632,11 @@ function getDeclarationEmitOutputFilePathWorker(fileName, options, currentDirect
const outputDir = options.declarationDir || options.outDir;
const path = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, currentDirectory, commonSourceDirectory, getCanonicalFileName) : fileName;
const declarationExtension = getDeclarationEmitExtensionForPath(path);
if (options.emitUTS) {
if (path.endsWith(".uts")) {
return path.slice(0, -4) + declarationExtension;
}
}
return removeFileExtension(path) + declarationExtension;
}
function getDeclarationEmitExtensionForPath(path) {
......@@ -20943,6 +20943,11 @@ function getDeclarationEmitOutputFilePathWorker(fileName, options, currentDirect
const outputDir = options.declarationDir || options.outDir;
const path = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, currentDirectory, commonSourceDirectory, getCanonicalFileName) : fileName;
const declarationExtension = getDeclarationEmitExtensionForPath(path);
if (options.emitUTS) {
if (path.endsWith(".uts")) {
return path.slice(0, -4) + declarationExtension;
}
}
return removeFileExtension(path) + declarationExtension;
}
function getDeclarationEmitExtensionForPath(path) {
......@@ -16654,6 +16654,11 @@ ${lanes.join("\n")}
const outputDir = options.declarationDir || options.outDir;
const path = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, currentDirectory, commonSourceDirectory, getCanonicalFileName) : fileName;
const declarationExtension = getDeclarationEmitExtensionForPath(path);
if (options.emitUTS) {
if (path.endsWith(".uts")) {
return path.slice(0, -4) + declarationExtension;
}
}
return removeFileExtension(path) + declarationExtension;
}
function getDeclarationEmitExtensionForPath(path) {
......@@ -16654,6 +16654,11 @@ ${lanes.join("\n")}
const outputDir = options.declarationDir || options.outDir;
const path = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, currentDirectory, commonSourceDirectory, getCanonicalFileName) : fileName;
const declarationExtension = getDeclarationEmitExtensionForPath(path);
if (options.emitUTS) {
if (path.endsWith(".uts")) {
return path.slice(0, -4) + declarationExtension;
}
}
return removeFileExtension(path) + declarationExtension;
}
function getDeclarationEmitExtensionForPath(path) {
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册