Skip to content

Commit bb0e3ce

Browse files
committed
implement husky
1 parent 7ac1d2e commit bb0e3ce

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
npm run lint && git update-index --again

.husky/pre-push

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
npm run build

package-lock.json

Lines changed: 16 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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"release": "npm run lint && npm run build && changeset publish",
1010
"build": "tsup ./src",
1111
"lint": "biome check --apply .",
12-
"test": "tsnd test/index.ts"
12+
"test": "tsnd test/index.ts",
13+
"prepare": "husky install"
1314
},
1415
"engines": {
1516
"node": ">=18.0.0"
@@ -23,6 +24,7 @@
2324
"@biomejs/biome": "^1.5.3",
2425
"@changesets/cli": "^2.27.1",
2526
"@types/node": "^20.11.16",
27+
"husky": "^9.0.10",
2628
"ts-node": "^10.9.2",
2729
"ts-node-dev": "^2.0.0",
2830
"tsc-alias": "^1.8.8",

0 commit comments

Comments
 (0)