Skip to content

Commit 23d8796

Browse files
frandioxsaihaj
andauthored
perf(watcher): ignore events in .git directory (#9556)
* perf(watcher): ignore events in .git directory * Create heavy-jars-notice.md --------- Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com>
1 parent 9df3644 commit 23d8796

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎.changeset/heavy-jars-notice.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@graphql-codegen/cli": patch
3+
---
4+
5+
ignore events in `.git` directory

‎packages/graphql-codegen-cli/src/utils/watcher.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const createWatcher = (
8484
}, 100);
8585
emitWatching(watchDirectory);
8686

87-
const ignored: string[] = [];
87+
const ignored: string[] = ['**/.git/**'];
8888
for (const entry of Object.keys(config.generates).map(filename => ({
8989
filename,
9090
config: normalizeOutputParam(config.generates[filename]),

0 commit comments

Comments
 (0)