Skip to content

Commit 13ee36f

Browse files
committed
Migrate to husky v9
1 parent 98747fe commit 13ee36f

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ concurrency:
1717
group: ${{ github.workflow }}-${{ github.ref }}
1818
cancel-in-progress: true
1919

20+
env:
21+
HUSKY: 0
22+
2023
jobs:
2124
code_validation:
2225
name: 'Code Validation: ${{ matrix.validation_script }}'

.husky/pre-commit

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
# Skip pre-commit hook on CI
52
[ -n "$CI" ] && exit 0
63

7-
pnpm lint-staged
4+
lint-staged

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "tsup",
88
"start": "pnpm build --watch",
9-
"prepare": "is-ci || husky install",
9+
"prepare": "husky",
1010
"test": "jest",
1111
"test:watch": "pnpm test -- --watch",
1212
"test:ci": "pnpm test -- --ci --coverage",
@@ -32,7 +32,6 @@
3232
"eslint-config-prettier": "9.1.0",
3333
"eslint-plugin-import": "2.29.1",
3434
"husky": "9.1.4",
35-
"is-ci": "3.0.1",
3635
"jest": "29.7.0",
3736
"lint-staged": "15.2.8",
3837
"lodash.deburr": "4.1.0",

pnpm-lock.yaml

-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)