chore: migrate to yarn berry#1326
Merged
aws-cdk-automation merged 2 commits intomainfrom Apr 10, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1326 +/- ##
==========================================
+ Coverage 88.20% 88.28% +0.07%
==========================================
Files 73 73
Lines 10386 10386
Branches 1409 1415 +6
==========================================
+ Hits 9161 9169 +8
+ Misses 1198 1190 -8
Partials 27 27
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
479359a to
181c4a1
Compare
181c4a1 to
27ef2c3
Compare
rix0rrr
approved these changes
Apr 10, 2026
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 migrates the monorepo from Yarn Classic to Yarn Berry by enabling the
yarnBerryprojen option and re-synthesizing the project.Yarn Classic (v1) has been in maintenance mode for years and Yarn Berry provides better dependency resolution, improved performance, and stricter dependency management. This is a necessary step to keep the toolchain current and benefit from ongoing improvements in the Yarn ecosystem.
The manual changes in
.projenrc.tsenable theyarnBerry: trueflag on the monorepo and introduce aconsistentVersionsconfiguration. The consistent versions list ensures that shared tooling dependencies liketypescript,eslintand its plugins,prettier, andjest-junitare pinned to the same version across all packages in the monorepo. This avoids subtle issues from version mismatches between packages, which Yarn Berry is more strict about enforcing. A few dependencies are marked with@todocomments where consistent versioning still needs to be worked out.Additionally,
ts-nodeis added as a dev dependency to theaws-cdkCLI package. Yarn Berry resolves peer dependencies more strictly than Classic, so transitive availability ofts-nodecan no longer be relied upon and it needs to be declared explicitly.All other file changes (workflows, package.json files, lockfile,
.yarnrc.yml,yarn.config.cjs, etc.) are auto-generated by running projen synthesis after these manual changes.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license