Skip to content

Commit 8146198

Browse files
authored
chore: simplify husky setup (#432)
1 parent c4cc81b commit 8146198

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

Diff for: .husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
pnpm exec lint-staged

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"node": ">=v16.20.0"
1616
},
1717
"scripts": {
18-
"prepare": "husky install",
18+
"prepare": "husky",
1919
"format": "prettier --write .",
2020
"build": "zx ./scripts/build.mjs",
2121
"snapshot": "zx ./scripts/snapshot.mjs",
@@ -45,7 +45,7 @@
4545
"ejs": "^3.1.9",
4646
"esbuild": "^0.18.20",
4747
"esbuild-plugin-license": "^1.2.2",
48-
"husky": "^9.0.1",
48+
"husky": "^9.0.2",
4949
"kolorist": "^1.8.0",
5050
"lint-staged": "^15.2.0",
5151
"minimist": "^1.2.8",

Diff for: pnpm-lock.yaml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)