-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: Upgrade to Lerna v7 #12605
chore: Upgrade to Lerna v7 #12605
Conversation
@@ -1,29 +1,5 @@ | |||
{ | |||
"npmClient": "yarn", | |||
"useWorkspaces": true, | |||
"packages": [ |
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.
Lerna v7 will defer entirely to the Yarn workspace configuration.
@@ -84,6 +79,7 @@ | |||
"@babel/core": "7.17.2", | |||
"@babel/preset-env": "^7.0.0", | |||
"@babel/preset-react": "^7.0.0", | |||
"@lerna/legacy-package-management": "^7.4.2", |
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.
Required to support the bootstrap
command as described here: https://lerna.js.org/docs/legacy-package-management#temporarily-polyfilling-legacy-package-management-commands
Long term, we'll want to migrate to Yarn 2 or 3 and entirely use the Yarn workspace feature.
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.
🥰
## What's the purpose of this pull request? Fix CD ## How it works? Updates lerna so it no longer depends on prettier@2. ## How to test it? Merge this 😆 (rly tho) ## References aws-amplify/amplify-js#12605
Description of changes
This PR upgrades to Lerna v7 and removes Husky & the associated dependencies. This upgrade is required to support the use of Prettier v3, which Lerna v6 does not support.
Issue #, if available
Description of how you validated changes
publish:verdaccio
&publish:release
:Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.