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: Upgrade to Lerna v7 #12605

Merged
merged 7 commits into from
Nov 22, 2023
Merged

chore: Upgrade to Lerna v7 #12605

merged 7 commits into from
Nov 22, 2023

Conversation

jimblanc
Copy link
Contributor

@jimblanc jimblanc commented Nov 21, 2023

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

Successfully published:
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - @aws-amplify/[email protected]
 - [email protected]

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jimblanc jimblanc marked this pull request as ready for review November 21, 2023 20:59
@jimblanc jimblanc requested a review from a team as a code owner November 21, 2023 20:59
@@ -1,29 +1,5 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
Copy link
Contributor Author

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",
Copy link
Contributor Author

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.

Copy link
Member

@cshfang cshfang left a comment

Choose a reason for hiding this comment

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

🥰

@jimblanc jimblanc merged commit fe5afe6 into main Nov 22, 2023
30 checks passed
icazevedo pushed a commit to vtex/faststore that referenced this pull request Dec 7, 2023
## 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
@jimblanc jimblanc deleted the chore/lerna-v7 branch March 1, 2024 16:39
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.

3 participants