We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6062bd commit d15506eCopy full SHA for d15506e
1 file changed
genMatrix.js
@@ -8,13 +8,14 @@ const testFiles = [
8
];
9
10
const nodeDirRegex = /^\d+$/;
11
+const windowsDirRegex = /^windows-/;
12
13
const areTestFilesChanged = (changedFiles) => changedFiles
14
.some((file) => testFiles.includes(file));
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-'
17
const getChildDirectories = (parent) => fs.readdirSync(parent, { withFileTypes: true })
- .filter((dirent) => dirent.isDirectory())
18
+ .filter((dirent) => dirent.isDirectory() && !windowsDirRegex.test(dirent.name))
19
.map(({ name }) => path.resolve(parent, name));
20
21
const getNodeVersionDirs = (base) => getChildDirectories(base)
0 commit comments