Skip to content

Commit

Permalink
No point in adding unignores to fast-glob options
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Sep 7, 2024
1 parent b583ae8 commit 859403b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/knip/src/util/glob-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ export async function globby(patterns: string | string[], options: GlobOptions):
while (dir) {
const cacheForDir = cachedIgnores.get(dir);
if (cacheForDir) {
// fast-glob doesn't support negated patterns in `ignore` (i.e. unignores are.. ignored): https://github.com/mrmlnc/fast-glob/issues/86
ignore.push(...cacheForDir.ignores);
ignore.push(...cacheForDir.unignores.map(pattern => `!${pattern}`));
}
// biome-ignore lint/suspicious/noAssignInExpressions: deal with it
dir = dirname((prev = dir));
Expand Down

0 comments on commit 859403b

Please sign in to comment.