Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update husky to 9.0.6 #1120

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented Jan 28, 2024

Although Husky 9 is stated to be backwards compatible to Husky 8 (see [email protected]) the following additional migration steps are taken:

To avoid a deprecation warning when installing dependencies, the prepare script in package.json is changed from

"prepare": "husky install"

to

"prepare": "husky"

The following lines are removed from .husky/pre-commit. These are not needed in Husky 9:

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

Verification

On a Ubuntu 22.04 system with Node.js 20 ...

Installation

Execute:

npm ci

Ensure that there are no errors or deprecation warnings.

Hook check

Make a change to index.js and commit the change.

Ensure that the Husky hook runs and updates dist/index.js automatically.

References

Husky documentation

@cypress-app-bot
Copy link

Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jennifer-shehane jennifer-shehane merged commit ea289b9 into cypress-io:master Feb 2, 2024
71 checks passed
@MikeMcC399 MikeMcC399 deleted the migrate/husky-9 branch February 2, 2024 17:06
Copy link

🎉 This PR is included in version 6.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@MikeMcC399 MikeMcC399 self-assigned this Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants