From d944319d53de32099b412f1f148f0b6024f6c119 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Sun, 29 Dec 2024 13:08:43 +0100 Subject: [PATCH] #896 - Fix glob node_modules ignore --- src/commands/Folders.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/Folders.ts b/src/commands/Folders.ts index f9d0e381..5817b30f 100644 --- a/src/commands/Folders.ts +++ b/src/commands/Folders.ts @@ -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