Skip to content

Commit 1352ffe

Browse files
committed
chore(pre-commit): add local schema generation sync check
1 parent 0f8f8a3 commit 1352ffe

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
exclude: '^(\.github/|\.vscode/).*|CODE_OF_CONDUCT\.md|CHANGELOG\.md'
22

33
repos:
4+
- repo: local
5+
hooks:
6+
- id: validate-generated-schema-types
7+
name: validate generated schema types
8+
entry: bash -c 'node generate_ts_schema_types.js && git diff --exit-code -- generated/schema-types.ts'
9+
language: system
10+
pass_filenames: false
411
- repo: https://github.com/streetsidesoftware/cspell-cli
512
rev: v9.3.3
613
hooks:

0 commit comments

Comments
 (0)