Skip to content

Commit ae5f0f9

Browse files
committed
chore: update
1 parent e70c513 commit ae5f0f9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/plugin-dts/src/utils.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -582,12 +582,12 @@ export async function cleanTsBuildInfoFile(
582582
): Promise<void> {
583583
const tsconfigDir = dirname(tsconfigPath);
584584
const { outDir, rootDir, tsBuildInfoFile } = compilerOptions;
585-
let tsbuildInfoFilePath = 'tsconfig.tsbuildinfo';
585+
let tsbuildInfoFilePath: string;
586586

587587
if (tsBuildInfoFile && isAbsolute(tsBuildInfoFile)) {
588588
tsbuildInfoFilePath = tsBuildInfoFile;
589589
} else {
590-
tsbuildInfoFilePath = `${basename(
590+
const defaultFileName = `${basename(
591591
tsconfigPath,
592592
'.json',
593593
)}${tsBuildInfoFile ?? '.tsbuildinfo'}`;
@@ -596,13 +596,13 @@ export async function cleanTsBuildInfoFile(
596596
tsbuildInfoFilePath = join(
597597
outDir,
598598
relative(resolve(tsconfigDir, rootDir), tsconfigDir),
599-
tsbuildInfoFilePath,
599+
defaultFileName,
600600
);
601601
} else {
602-
tsbuildInfoFilePath = join(outDir, tsbuildInfoFilePath);
602+
tsbuildInfoFilePath = join(outDir, defaultFileName);
603603
}
604604
} else {
605-
tsbuildInfoFilePath = join(tsconfigDir, tsbuildInfoFilePath);
605+
tsbuildInfoFilePath = join(tsconfigDir, defaultFileName);
606606
}
607607
}
608608

0 commit comments

Comments
 (0)