chore: update husky scripts to latest version#253
Merged
Th3S4mur41 merged 1 commit intomainfrom Dec 9, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request attempts to update Husky Git hook scripts to the v9.x format and changes the prepare script from husky install to husky. While the change to the prepare script is correct for Husky v9.1.7, the hook files have been incorrectly simplified by removing the shebang lines, which will cause the hooks to fail to execute.
Key changes:
- Updated
preparescript in package.json fromhusky installtohusky(correct for v9.x) - Removed shebang and initialization lines from all three hook files (incorrect - shebang is still required)
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
package.json |
Updates prepare script to use husky command instead of husky install for v9.x compatibility |
.husky/pre-push |
Removes shebang and initialization, leaving only the command (incorrectly removes required shebang) |
.husky/pre-commit |
Removes shebang and initialization, leaving only the command (incorrectly removes required shebang) |
.husky/commit-msg |
Removes shebang and initialization, leaving only the command (incorrectly removes required shebang) |
userjoergjakoby
approved these changes
Dec 9, 2025
|
🎉 This PR is included in version 3.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the Husky Git hook scripts and adjusts the Husky installation command in
package.json. The main goal is to simplify the hook scripts and potentially resolve issues related to Husky's initialization.Husky hook script updates:
#!/bin/sh) and Husky initialization line (. "$(dirname "$0")/_/husky.sh") from the.husky/commit-msg,.husky/pre-commit, and.husky/pre-pushscripts, leaving only the commands that should run for each hook. [1] [2] [3]Husky installation command change:
preparescript inpackage.jsonfromhusky installto justhusky, possibly to align with a custom or updated Husky setup process.