Skip to content

Commit a293502

Browse files
committed
chore: migrate simple-git-hook to our githook
1 parent 7df792a commit a293502

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

.githooks/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
npx --no-install lint-staged

bun.lock

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"lint": "eslint --cache .",
5050
"mcp": "bunx @modelcontextprotocol/inspector bun run start mcp",
5151
"prepack": "bun run build && bun clean-pkg-json -r scripts.preinstall",
52-
"prepare": "bun simple-git-hooks",
52+
"prepare": "git config --local core.hooksPath .githooks",
5353
"release": "bun lint && bun typecheck && vitest run && bun run build && bumpp",
5454
"start": "bun run ./src/index.ts",
5555
"test": "TZ=UTC vitest",
@@ -93,7 +93,6 @@
9393
"picocolors": "^1.1.1",
9494
"pretty-ms": "^9.2.0",
9595
"publint": "^0.3.12",
96-
"simple-git-hooks": "^2.13.1",
9796
"sort-package-json": "^3.4.0",
9897
"string-width": "^7.2.0",
9998
"tinyglobby": "^0.2.14",
@@ -105,19 +104,12 @@
105104
"xdg-basedir": "^5.1.0",
106105
"zod": "^3.25.67"
107106
},
108-
"simple-git-hooks": {
109-
"pre-commit": "bun lint-staged",
110-
"pre-push": "bun run test && bun run typecheck"
111-
},
112107
"lint-staged": {
113108
"*": [
114109
"eslint --cache --fix"
115110
],
116111
"package.json": [
117112
"sort-package-json"
118113
]
119-
},
120-
"trustedDependencies": [
121-
"simple-git-hooks"
122-
]
114+
}
123115
}

0 commit comments

Comments
 (0)