File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments