Skip to content

Commit

Permalink
chore: upgrade husky to v9 (#2158)
Browse files Browse the repository at this point in the history
## Why is this change needed?

Upgrade husky dev dependency to v9

## Merge Checklist

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [ ] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.


<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates `husky` and `iconv-lite` dependencies, changes `husky`
version to `9.0.0`, and simplifies the `prepare` script.

### Detailed summary
- Updated `husky` dependency to version `9.0.11`
- Updated `iconv-lite` dependency to version `0.4.24`
- Simplified `prepare` script in `package.json` to just `"husky"`

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
  • Loading branch information
varunsrin committed Jul 11, 2024
1 parent 3a87631 commit 5656f32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test:ci": "./node_modules/.bin/turbo run test:ci -- --passWithNoTests",
"lint": "./node_modules/.bin/turbo run lint --parallel",
"lint:ci": "./node_modules/.bin/turbo run lint:ci --parallel",
"prepare": "husky install",
"prepare": "husky",
"version-packages": "changeset version --ignore @farcaster/hubble",
"release-packages": "yarn build && changeset publish",
"release-all": "yarn build && changeset publish && changeset tag",
Expand All @@ -32,7 +32,7 @@
"@swc/jest": "^0.2.26",
"@types/jest": "^29.0.2",
"@types/node": "^18.7.14",
"husky": "^8.0.3",
"husky": "^9.0.0",
"jest": "^29.6.1",
"lint-staged": "^13.2.2",
"rimraf": "^5.0.1",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6968,10 +6968,10 @@ humanize-ms@^1.2.1:
dependencies:
ms "^2.0.0"

husky@^8.0.3:
version "8.0.3"
resolved "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184"
integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==
husky@^9.0.0:
version "9.0.11"
resolved "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz#fc91df4c756050de41b3e478b2158b87c1e79af9"
integrity sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==

iconv-lite@^0.4.24, iconv-lite@^0.4.4:
version "0.4.24"
Expand Down

0 comments on commit 5656f32

Please sign in to comment.