#896 - Fix glob node_modules ignore

This commit is contained in:
Elio Struyf
2024-12-29 13:08:43 +01:00
parent 146bbbf6a1
commit d944319d53
+2 -2
View File
@@ -860,7 +860,7 @@ export class Folders {
try {
pattern = isWindows() ? parseWinPath(pattern) : pattern;
const folders = await glob(pattern, {
ignore: 'node_modules/**',
ignore: '**/node_modules/**',
dot: true
});
@@ -903,7 +903,7 @@ export class Folders {
pattern = isWindows() ? parseWinPath(pattern) : pattern;
const files = await glob(pattern, {
ignore: [
'node_modules/**',
'**/node_modules/**',
...excludePaths.map((path) => {
// path can be a folder name or a wildcard.
// If its a folder name, we need to add a wildcard to the end