File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,14 @@ const testFiles = [
88] ;
99
1010const nodeDirRegex = / ^ \d + $ / ;
11+ const windowsDirRegex = / ^ w i n d o w s - / ;
1112
1213const areTestFilesChanged = ( changedFiles ) => changedFiles
1314 . some ( ( file ) => testFiles . includes ( file ) ) ;
1415
15- // Returns a list of the child directories in the given path
16+ // Returns a list of the child directories in the given path, excluding those starting with 'windows-'
1617const getChildDirectories = ( parent ) => fs . readdirSync ( parent , { withFileTypes : true } )
17- . filter ( ( dirent ) => dirent . isDirectory ( ) )
18+ . filter ( ( dirent ) => dirent . isDirectory ( ) && ! windowsDirRegex . test ( dirent . name ) )
1819 . map ( ( { name } ) => path . resolve ( parent , name ) ) ;
1920
2021const getNodeVersionDirs = ( base ) => getChildDirectories ( base )
You can’t perform that action at this time.
0 commit comments