diff --git a/.changeset/heavy-jars-notice.md b/.changeset/heavy-jars-notice.md new file mode 100644 index 00000000000..66bc58c88c8 --- /dev/null +++ b/.changeset/heavy-jars-notice.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/cli": patch +--- + +ignore events in `.git` directory diff --git a/packages/graphql-codegen-cli/src/utils/watcher.ts b/packages/graphql-codegen-cli/src/utils/watcher.ts index a03b9438465..b2420f65cfa 100644 --- a/packages/graphql-codegen-cli/src/utils/watcher.ts +++ b/packages/graphql-codegen-cli/src/utils/watcher.ts @@ -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]),