Skip to content

Commit

Permalink
perf(watcher): ignore events in .git directory (#9556)
Browse files Browse the repository at this point in the history
* perf(watcher): ignore events in .git directory

* Create heavy-jars-notice.md

---------

Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com>
  • Loading branch information
frandiox and saihaj authored Sep 25, 2023
1 parent 9df3644 commit 23d8796
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/heavy-jars-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-codegen/cli": patch
---

ignore events in `.git` directory
2 changes: 1 addition & 1 deletion packages/graphql-codegen-cli/src/utils/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const createWatcher = (
}, 100);
emitWatching(watchDirectory);

const ignored: string[] = [];
const ignored: string[] = ['**/.git/**'];
for (const entry of Object.keys(config.generates).map(filename => ({
filename,
config: normalizeOutputParam(config.generates[filename]),
Expand Down

0 comments on commit 23d8796

Please sign in to comment.