Skip to content

Commit

Permalink
Always ignore node_modules (even if gitignore:false)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Sep 7, 2024
1 parent 8b5bc3f commit b583ae8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/knip/src/util/glob-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ export async function globby(patterns: string | string[], options: GlobOptions):
dir = dirname((prev = dir));
if (prev === dir || dir === '.') break;
}
} else {
ignore.push(...GLOBAL_IGNORE_PATTERNS);
}

const fgOptions = Object.assign(options, { ignore });
Expand Down

0 comments on commit b583ae8

Please sign in to comment.