forked from github/quartz
20 lines
520 B
Diff
20 lines
520 B
Diff
diff --git a/quartz/util/glob.ts b/quartz/util/glob.ts
|
|
index 7a71160..91fbaa7 100644
|
|
--- a/quartz/util/glob.ts
|
|
+++ b/quartz/util/glob.ts
|
|
@@ -10,12 +10,13 @@ export async function glob(
|
|
pattern: string,
|
|
cwd: string,
|
|
ignorePatterns: string[],
|
|
+ respectGitignore: boolean = true,
|
|
): Promise<FilePath[]> {
|
|
const fps = (
|
|
await globby(pattern, {
|
|
cwd,
|
|
ignore: ignorePatterns,
|
|
- gitignore: true,
|
|
+ gitignore: respectGitignore,
|
|
})
|
|
).map(toPosixPath)
|
|
return fps as FilePath[]
|