Skip to content

Commit

Permalink
refactor(ignore): Use library's ignore filter
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadashy committed Jul 21, 2024
1 parent 1e5a699 commit 52948c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/gitignoreUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export type IgnoreFilter = (path: string) => boolean;

export function createIgnoreFilter(patterns: string[]): IgnoreFilter {
const ig = ignore.default().add(patterns);
return (filePath: string) => !ig.ignores(filePath);
return ig.createFilter();
}

0 comments on commit 52948c5

Please sign in to comment.