Skip to content

Commit e83201e

Browse files
authored
Update src/utils/glob.mts
Signed-off-by: John-David Dalton <jdalton@users.noreply.github.com>
1 parent fe7d65d commit e83201e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/glob.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ export async function globWithGitIgnore(
260260
if (!hasNegatedPattern && !filter) {
261261
return await fastGlob.glob(patterns as string[], globOptions)
262262
}
263-
263+
// Add support for negated "ignore" patterns which many globbing libraries,
264+
// including 'fast-glob', 'globby', and 'tinyglobby', lack support for.
264265
// Use streaming to avoid unbounded memory accumulation.
265266
// This is critical for large monorepos with 100k+ files.
266267
const results: string[] = []

0 commit comments

Comments
 (0)