Skip to content

Commit c526c5c

Browse files
committed
chore: set up husky for pre-commit hooks
1 parent 72817a2 commit c526c5c

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pnpm typecheck
2+
pnpm lint
3+
pnpm test

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"lint:fix": "eslint src --fix",
1515
"typecheck": "tsc",
1616
"build": "tsup src/index.ts --format cjs,esm --dts",
17-
"release": "pnpm run build && changeset publish"
17+
"release": "pnpm run build && changeset publish",
18+
"prepare": "husky"
1819
},
1920
"bugs": {
2021
"url": "https://github.com/arjunkdot/hexashades/issues"
@@ -28,6 +29,7 @@
2829
"@types/node": "^22.9.1",
2930
"eslint": "^9.15.0",
3031
"globals": "^15.12.0",
32+
"husky": "^9.1.7",
3133
"jest": "^29.7.0",
3234
"ts-jest": "^29.2.5",
3335
"tsup": "^8.3.5",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)