Skip to content

Commit ef7fb1f

Browse files
committed
fix(glob): add dot:true to match dotfiles and dot directories
Ensures fastGlob matches files and directories starting with a dot in gitIgnoreStream and globWorkspace functions.
1 parent c3659cf commit ef7fb1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/glob.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ export async function globWithGitIgnore(
208208
const gitIgnoreStream = fastGlob.globStream(['**/.gitignore'], {
209209
absolute: true,
210210
cwd,
211+
dot: true,
211212
ignore: DEFAULT_IGNORE_FOR_GIT_IGNORE,
212213
})
213214
for await (const ignorePatterns of transform(
@@ -274,6 +275,7 @@ export async function globWorkspace(
274275
? await fastGlob.glob(workspaceGlobs, {
275276
absolute: true,
276277
cwd,
278+
dot: true,
277279
ignore: defaultIgnore,
278280
})
279281
: []

0 commit comments

Comments
 (0)