-
Notifications
You must be signed in to change notification settings - Fork 87
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
fix: prevent dependabot verison updates (+ husky fixes) #867
Conversation
- React should not auto update on major version updates - Bump storybook to current dep version - Prevent USWDS auto updates
…/react-uswds into bl-dependabot-ignore-versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brandonlenz I'm not seeing the uswds
dependency in the diff anymore, did it get removed by accident? I think once that's added back this is good to go!
Nice catch! Added it back in ac10252 |
.husky/.gitignore
Outdated
@@ -0,0 +1 @@ | |||
_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I'm not so sure I did everything required here. In #877 the patch notes mentions updating from husky 4 to 5 being more involved:
Migrating
Important Husky v5 brings a lot of improvements but is also very different from v4. Git hooks won't work if you only upgrade husky dependency, existing config needs to be migrated too.
The best way to switch to v5 is to follow the new installation instructions and migrate existing hooks command using husky add.
I found https://github.com/typicode/husky-4-to-5 via typicode/husky#854 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@suzubara @ahobson Okay, so the husky 5 docs don't cover the implementation of how husky 5 works (under the hood) very well. Basically they no longer use package.json, and instead rely on scripts in the .husky directory. Everything is updated in accordance with the Husky 5 docs now via 58b6d22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good to me. Thank you so much for chasing down all the comments and suggestions
Summary
Dependabot recently performed an update to React for a major version change. We would like to prevent that in the future.
Additionally, uswds should be updated manually, so it has been added to the dependabot ignore list.