Skip to content

Commit

Permalink
#896 - Fix glob node_modules ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Dec 29, 2024
1 parent 146bbbf commit d944319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/Folders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d944319

Please sign in to comment.