Skip to content

Commit 380eba1

Browse files
committed
chore: add simple-git-hooks for pre-commit linting and type-checking
1 parent 45e2eea commit 380eba1

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

bun.lock

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

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"@biomejs/biome": "^2.3.11",
1010
"@changesets/cli": "^2.29.8",
1111
"@types/bun": "latest",
12+
"simple-git-hooks": "^2.13.1",
1213
"syncpack": "^13.0.4"
1314
},
1415
"peerDependencies": {
@@ -26,8 +27,12 @@
2627
"syncpack:fix": "syncpack fix-mismatches",
2728
"precommit:check": "bun test && bun run lint:check && bun run type-check && bun run syncpack:list",
2829
"install:clean": "bun pm cache rm && bunx rimraf bun.lock bun.lockb && bun install",
30+
"prepare": "simple-git-hooks",
2931
"version": "changeset version && bun update --lockfile-only",
3032
"release": "set -e; for dir in packages/*; do if [ \"$(jq -r '.private' $dir/package.json)\" != \"true\" ]; then (cd \"$dir\" && bun publish --access public); fi; done && changeset tag",
3133
"change": "changeset"
34+
},
35+
"simple-git-hooks": {
36+
"pre-commit": "bun run lint:check && bun run type-check"
3237
}
3338
}

0 commit comments

Comments
 (0)