Skip to content

Commit a872946

Browse files
committed
chore: update
1 parent 40ec8a2 commit a872946

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/plugin-dts/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const pluginDts = (options: PluginDtsOptions = {}): RsbuildPlugin => ({
129129
compilerOptions.incremental ||
130130
options.build
131131
) {
132-
await cleanTsBuildInfoFile(tsconfigPath, tsConfigResult);
132+
await cleanTsBuildInfoFile(tsconfigPath, compilerOptions);
133133
}
134134

135135
const dtsGenOptions: DtsGenOptions = {

packages/plugin-dts/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ export async function cleanDtsFiles(dir: string): Promise<void> {
243243

244244
export async function cleanTsBuildInfoFile(
245245
tsconfigPath: string,
246-
tsConfigResult: ts.ParsedCommandLine,
246+
compilerOptions: ts.CompilerOptions,
247247
): Promise<void> {
248248
const tsconfigDir = dirname(tsconfigPath);
249-
const { outDir, rootDir, tsBuildInfoFile } = tsConfigResult.options;
249+
const { outDir, rootDir, tsBuildInfoFile } = compilerOptions;
250250
let tsbuildInfoFilePath = `${basename(
251251
tsconfigPath,
252252
'.json',

0 commit comments

Comments
 (0)