From 5656f327a4ed74d8f171b7f25fbfc58f9e6a6fb5 Mon Sep 17 00:00:00 2001 From: Varun Srinivasan Date: Thu, 11 Jul 2024 10:01:03 -0700 Subject: [PATCH] chore: upgrade husky to v9 (#2158) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 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. --- ## 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}` --- .husky/pre-commit | 3 --- package.json | 4 ++-- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index d2ae35e84b..3723623171 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - yarn lint-staged diff --git a/package.json b/package.json index 0c7e51b12e..e2c8eb6388 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/yarn.lock b/yarn.lock index 374df5a2b4..66dc9a3fbb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"