Skip to content

Commit e7f0e8a

Browse files
build: add husky (#4)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 6e5de65 commit e7f0e8a

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm build check test

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
"exec": "turbo run exec",
99
"test": "turbo run test",
1010
"check": "turbo run check",
11-
"release": "turbo run build && pnpm publish -r"
11+
"release": "turbo run build && pnpm publish -r",
12+
"prepare": "husky install"
1213
},
1314
"devDependencies": {
1415
"@changesets/cli": "^2.28.1",
16+
"husky": "^9.1.7",
1517
"prettier": "^3.5.3",
1618
"turbo": "^2.4.4",
1719
"typescript": "5.8.2"
@@ -25,4 +27,4 @@
2527
"esbuild"
2628
]
2729
}
28-
}
30+
}

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)