Skip to content

Commit

Permalink
fix(core): use ignore pattern based on driver path (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz authored Jun 14, 2021
1 parent 2fdc18f commit 9aae1cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/storage/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function sortItemKeys(keys: string[]) {
export const docusDriver = defineDriver((options: DriverOptions) => {
// force ignore node_modules and .git and files with `_` prefix
if (options.ignore) {
options.ignore.push('**/node_modules/**', '**/.git/**', '**/_**/**')
options.ignore.push('**/node_modules/**', '**/.git/**', join(options.base, '**/_**/**'))
}

const { insert, items } = useDB()
Expand Down

0 comments on commit 9aae1cb

Please sign in to comment.