File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ export function getTSConfigCompilerOptions(
1515 process . exit ( 1 ) ;
1616 }
1717
18+ logger . log ( 'tsc compiler version:' , ts . version ) ;
19+
1820 if ( ts . version . match ( / ^ [ 5 - 9 ] \. ( [ 4 - 9 ] | [ 1 - 9 ] \d ) / ) ) {
1921 const tsconfigJsonFile = ts . readJsonConfigFile ( tsconfigPath , ts . sys . readFile ) ;
2022 const parsedConfig = ts . parseJsonSourceFileConfigFileContent (
@@ -23,9 +25,7 @@ export function getTSConfigCompilerOptions(
2325 path . dirname ( tsconfigPath ) ,
2426 ) ;
2527
26- logger . groupCollapsed (
27- `Parsed tsconfig compiler options for TypeScript >= 5.4 (current version: ${ ts . version } )` ,
28- ) ;
28+ logger . groupCollapsed ( 'Parsed tsconfig compiler options for TypeScript >= 5.4' ) ;
2929 logger . log ( parsedConfig . options ) ;
3030 logger . groupEnd ( ) ;
3131
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ import fs from 'node:fs';
33export function getAllFilePaths ( dirPath : string , arrayOfFiles : string [ ] = [ ] ) : string [ ] {
44 const files = fs . readdirSync ( dirPath ) ;
55
6- const updatedArrayOfFiles = [ ...arrayOfFiles ] ;
6+ let updatedArrayOfFiles = [ ...arrayOfFiles ] ;
77
88 files . forEach ( file => {
99 if ( fs . statSync ( `${ dirPath } /${ file } ` ) . isDirectory ( ) ) {
10- getAllFilePaths ( `${ dirPath } /${ file } ` , updatedArrayOfFiles ) ;
10+ updatedArrayOfFiles = getAllFilePaths ( `${ dirPath } /${ file } ` , updatedArrayOfFiles ) ;
1111 } else {
1212 updatedArrayOfFiles . push ( `${ dirPath } /${ file } ` ) ;
1313 }
You can’t perform that action at this time.
0 commit comments