Skip to content

Commit 91c7edc

Browse files
authored
Merge pull request #59 from PatrickSys/feat/pre-push-format-hook
chore(git): add husky pre-push format hook
2 parents 034536d + 785d28b commit 91c7edc

File tree

5 files changed

+249
-211
lines changed

5 files changed

+249
-211
lines changed

.husky/pre-push

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
echo "Checking formatting before push..."
2+
pnpm format:check
3+
echo "Running tests before push..."
4+
pnpm test
5+

package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,18 @@
120120
"format:check": "prettier --check \"src/**/*.ts\"",
121121
"type-check": "tsc --noEmit",
122122
"mcp:inspect": "npx -y @modelcontextprotocol/inspector node dist/index.js .",
123-
"eval": "pnpm run build && node scripts/run-eval.mjs"
123+
"eval": "pnpm run build && node scripts/run-eval.mjs",
124+
"prepare": "husky"
124125
},
125126
"dependencies": {
126127
"@huggingface/transformers": "^3.8.1",
127128
"@lancedb/lancedb": "^0.4.0",
128-
"@modelcontextprotocol/sdk": "^1.25.2",
129+
"@modelcontextprotocol/sdk": "^1.27.1",
129130
"@typescript-eslint/typescript-estree": "^7.0.0",
130131
"chokidar": "^3.6.0",
131132
"fuse.js": "^7.0.0",
132133
"glob": "^10.3.10",
133-
"hono": "^4.12.2",
134+
"hono": "^4.12.5",
134135
"ignore": "^5.3.1",
135136
"typescript": "^5.3.3",
136137
"uuid": "^9.0.1",
@@ -148,11 +149,12 @@
148149
"eslint-config-prettier": "^10.1.8",
149150
"eslint-plugin-import": "^2.32.0",
150151
"globals": "^17.0.0",
152+
"husky": "^9.1.7",
151153
"prettier": "^3.7.4",
152154
"tree-sitter-wasms": "^0.1.13",
153155
"tsx": "^4.21.0",
154156
"typescript-eslint": "^8.51.0",
155-
"vitest": "^4.0.16"
157+
"vitest": "^4.0.18"
156158
},
157159
"pnpm": {
158160
"onlyBuiltDependencies": [
@@ -163,7 +165,10 @@
163165
],
164166
"overrides": {
165167
"@modelcontextprotocol/sdk>ajv": "8.18.0",
166-
"minimatch": "10.2.3"
168+
"@modelcontextprotocol/sdk>@hono/node-server": "1.19.11",
169+
"@huggingface/transformers>onnxruntime-node": "1.24.2",
170+
"minimatch": "10.2.3",
171+
"rollup": "4.59.0"
167172
}
168173
}
169174
}

0 commit comments

Comments
 (0)