Skip to content

Commit 457c086

Browse files
committed
chore: Update to husky to v9
1 parent c733730 commit 457c086

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"index.js"
1818
],
1919
"scripts": {
20-
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\""
20+
"prepare": "husky || exit 0"
2121
},
2222
"dependencies": {
2323
"@commitlint/config-conventional": "^18.4.3"
@@ -27,6 +27,6 @@
2727
},
2828
"devDependencies": {
2929
"@commitlint/cli": "^18.4.3",
30-
"husky": "^8.0.3"
30+
"husky": "^9.0.11"
3131
}
3232
}

package.json.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
> requiring explanation.
55
66
- [scripts](https://docs.npmjs.com/cli/v7/configuring-npm/package-json#scripts)
7-
- `prepare` Installs git hooks with husky. If install fails, it omits npm error
8-
(i.e. when installed with `npm install --omit=dev` and husky can not be found)
9-
through husky's suggested disabled ci settings
10-
(see: [disable husky with custom script](https://typicode.github.io/husky/#/?id=with-a-custom-script)).
7+
- `prepare` Installs git hooks with husky. In production and CI, it omits an error
8+
(i.e. husky can not be found when installed with `npm install --omit=dev`)
9+
through husky's suggested disabled ci settings
10+
(see: [ci-server-and-docker](https://typicode.github.io/husky/how-to.html#ci-server-and-docker).

0 commit comments

Comments
 (0)