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 = [
8
8
] ;
9
9
10
10
const nodeDirRegex = / ^ \d + $ / ;
11
+ const windowsDirRegex = / ^ w i n d o w s - / ;
11
12
12
13
const areTestFilesChanged = ( changedFiles ) => changedFiles
13
14
. some ( ( file ) => testFiles . includes ( file ) ) ;
14
15
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-'
16
17
const getChildDirectories = ( parent ) => fs . readdirSync ( parent , { withFileTypes : true } )
17
- . filter ( ( dirent ) => dirent . isDirectory ( ) )
18
+ . filter ( ( dirent ) => dirent . isDirectory ( ) && ! windowsDirRegex . test ( dirent . name ) )
18
19
. map ( ( { name } ) => path . resolve ( parent , name ) ) ;
19
20
20
21
const getNodeVersionDirs = ( base ) => getChildDirectories ( base )
You can’t perform that action at this time.
0 commit comments