diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e924d9a8..1d8d4b62 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,6 +42,6 @@ repos: - id: python-generate-ts name: python-generate-ts types_or: [python] - entry: fastui generate fastui:FastUI src/npm-fastui/src/models.d.ts + entry: make typescript-models language: system pass_filenames: false diff --git a/Makefile b/Makefile index 5a9c8e5d..55cf0a8a 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,10 @@ test: testcov: test coverage html +.PHONY: typescript-models +typescript-models: + fastui generate fastui:FastUI src/npm-fastui/src/models.d.ts + .PHONY: dev dev: uvicorn demo:app --reload --reload-dir . diff --git a/package-lock.json b/package-lock.json index 487959a6..3b287145 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6950,7 +6950,7 @@ }, "src/npm-fastui": { "name": "@pydantic/fastui", - "version": "0.0.13", + "version": "0.0.14", "license": "MIT", "dependencies": { "react": "^18.2.0", @@ -6966,7 +6966,7 @@ }, "src/npm-fastui-bootstrap": { "name": "@pydantic/fastui-bootstrap", - "version": "0.0.13", + "version": "0.0.14", "license": "MIT", "dependencies": { "bootstrap": "^5.3.2", @@ -6976,12 +6976,12 @@ "sass": "^1.69.5" }, "peerDependencies": { - "@pydantic/fastui": "0.0.13" + "@pydantic/fastui": "0.0.14" } }, "src/npm-fastui-prebuilt": { "name": "@pydantic/fastui-prebuilt", - "version": "0.0.13", + "version": "0.0.14", "license": "MIT", "devDependencies": { "@vitejs/plugin-react-swc": "^3.3.2",