Skip to content

Commit e74aa2a

Browse files
committed
Use a default ignore when hasNegatedPattern is truthy
1 parent 52d17d5 commit e74aa2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/glob.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export async function globWithGitIgnore(
230230
absolute: true,
231231
cwd,
232232
dot: true,
233-
ignore: hasNegatedPattern ? [] : ignores,
233+
ignore: hasNegatedPattern ? ['**/.git', '**/node_modules'] : ignores,
234234
...additionalOptions,
235235
} as GlobOptions
236236

0 commit comments

Comments
 (0)