Skip to content

Commit 5c049f6

Browse files
committed
add generate-json-schema to pre-commit, take 2
1 parent 9483dfb commit 5c049f6

File tree

4 files changed

+1279
-1548
lines changed

4 files changed

+1279
-1548
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,9 @@ repos:
3939
entry: npm run typecheck
4040
language: system
4141
pass_filenames: false
42+
- id: js-json-schema
43+
name: js-json-schema
44+
types_or: [ts, tsx]
45+
entry: npm run generate-json-schema
46+
language: system
47+
pass_filenames: false

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"lint-fix": "npm run lint -- --fix",
1414
"prettier": "prettier --write",
1515
"format": "npm run prettier -- . && npm run lint-fix",
16-
"generate-json-schema": "typescript-json-schema --required src/npm-fastui/tsconfig.json FastProps > src/python-fastui/tests/react-fastui-json-schema.json"
16+
"generate-json-schema": "./src/python-fastui/tests/react-fastui-json-schema.sh"
1717
},
1818
"prettier": {
1919
"singleQuote": true,

0 commit comments

Comments
 (0)