Skip to content

Commit

Permalink
chore: set up husky for pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunkdot committed Nov 21, 2024
1 parent 72817a2 commit c526c5c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pnpm typecheck
pnpm lint
pnpm test
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"lint:fix": "eslint src --fix",
"typecheck": "tsc",
"build": "tsup src/index.ts --format cjs,esm --dts",
"release": "pnpm run build && changeset publish"
"release": "pnpm run build && changeset publish",
"prepare": "husky"
},
"bugs": {
"url": "https://github.com/arjunkdot/hexashades/issues"
Expand All @@ -28,6 +29,7 @@
"@types/node": "^22.9.1",
"eslint": "^9.15.0",
"globals": "^15.12.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
"tsup": "^8.3.5",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c526c5c

Please sign in to comment.