Migrate to Yarn Berry (4.18.0) - #626
Open
witchinghourartcollective wants to merge 1 commit into
Open
Conversation
Pin packageManager in package.json and enable corepack in CI so `yarn install` resolves to Berry instead of drifting between Classic and whatever yarn happens to be globally installed. Regenerate yarn.lock in Berry format, keep nodeLinker: node-modules for drop-in node_modules compatibility, and ignore Berry's local-only state (.yarn/install-state.gz etc.) while tracking .yarnrc.yml. compile/test verified passing (146/146) against the new lockfile.
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.
Summary
packageManager: yarn@4.18.0inpackage.jsonand addcorepack enableto each CI job, soyarn installdeterministically resolves to Berry instead of whateveryarnhappens to be on the runner/contributor's machine.yarn.lockin Berry's lockfile format. KeepnodeLinker: node-modulesin.yarnrc.ymlso the install layout stays drop-in compatible with existing tooling (no PnP migration)..yarn/install-state.gz, etc.) via the standard Berry.gitignoreblock, while tracking.yarnrc.yml.This is a tooling/infra change, not a functional one — opening separately from #625 so it can be reviewed/discussed on its own; happy to close if the maintainers prefer to stay on Yarn Classic.
Test plan
yarn install(Berry) — resolves and links cleanlyyarn compile— passesyarn test— 146/146 passing