Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
echo "[pre-commit] Running OpenAPI TypeScript generation…"
yarn openapi-ts

echo "[pre-commit] Staging generated files (src/generated, src/schema/sonarqube-all.yaml)…"
git add src/generated src/schema/sonarqube-all.yaml

echo "[pre-commit] Done."
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"types": "dist/index.d.ts"
},
"scripts": {
"prepare": "husky",
"test": "NODE_ENV=test jest",
"test:watch": "NODE_ENV=test jest --watch",
"lint": "yarn eslint src",
Expand All @@ -28,6 +29,7 @@
"@types/jest": "^30.0.0",
"@types/node": "^24.10.1",
"eslint": "^9.36.0",
"husky": "^9.1.7",
"jest": "^30.2.0",
"msw": "^2.11.2",
"openapi-merge-cli": "^1.3.2",
Expand Down
Loading