File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 = {
Original file line number Diff line number Diff line change @@ -243,10 +243,10 @@ export async function cleanDtsFiles(dir: string): Promise<void> {
243243
244244export 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' ,
You can’t perform that action at this time.
0 commit comments