Skip to content

Commit b83015b

Browse files
committed
chore: adding husky
1 parent d2e9593 commit b83015b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run build
5+
npm test

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build": "nx run-many --target=build --parallel 5",
99
"cipublish": "node scripts/publish.js",
1010
"dev": "nx run-many --target=dev --parallel 10",
11-
"test": "nx run-many -t test"
11+
"test": "nx run-many -t test",
12+
"prepare": "husky install"
1213
},
1314
"repository": {
1415
"type": "git",
@@ -20,7 +21,8 @@
2021
"eslint-plugin-react-hooks": "^5.1.0",
2122
"eslint-plugin-unused-imports": "^4.1.4",
2223
"nx": "20.6.4",
23-
"typescript": "^5.6.3"
24+
"typescript": "^5.6.3",
25+
"husky": "^8.0.0"
2426
},
2527
"packageManager": "[email protected]",
2628
"pnpm": {

0 commit comments

Comments
 (0)