Skip to content

Support husky v9#1

Open
timdp wants to merge 2 commits intomainfrom
support-v9
Open

Support husky v9#1
timdp wants to merge 2 commits intomainfrom
support-v9

Conversation

@timdp
Copy link
Copy Markdown
Member

@timdp timdp commented Mar 25, 2024

husky v9 changes the package.json format from:

"bin": "foo.js"

to:

"bin": {
  "husky": "foo.js"
}

Our current implementation only considers a single JSON string.

This PR takes the package.json contents and then uses sed to parse the CLI path from both kinds of expressions.

Tested using echo '{ package.json contents here }' | sed -e regexp. 🤞🏻

@timdp timdp requested a review from tguvdamm March 25, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant