Update to modern version of Yarn#204
Closed
wojtekmaj wants to merge 1 commit intostyled-components:masterfrom
Closed
Update to modern version of Yarn#204wojtekmaj wants to merge 1 commit intostyled-components:masterfrom
wojtekmaj wants to merge 1 commit intostyled-components:masterfrom
Conversation
Completely optional, feel free to reject, costed me like 3 minutes of work. Yarn v1 is unmaintained, deprecated and full of bugs. Upgrading to a modern version of Yarn felt like the easiest step out of this mess. I'll be raising an alternative PR with pnpm migration soon after.
There was a problem hiding this comment.
Pull request overview
Updates the repository to use a modern Yarn (Berry) toolchain by pinning Yarn v4 via packageManager, adding minimal Yarn configuration, and aligning CI + ignore rules with the new setup.
Changes:
- Pin Yarn version via
packageManagerand add Yarn Berry config (.yarnrc.yml). - Expand
.gitignoreto cover Yarn/Berry artifacts and common generated outputs. - Update CI to use
--immutableinstalls and add a Corepack install step; add a shortCONTRIBUTING.mdwith prerequisites.
Reviewed changes
Copilot reviewed 4 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Pins Yarn to yarn@4.13.0 via packageManager. |
| CONTRIBUTING.md | Adds prerequisites (Node >= 20, Corepack). |
| .yarnrc.yml | Configures Yarn to use node-modules linker. |
| .gitignore | Adds ignore rules for Yarn artifacts and generated directories. |
| .github/workflows/ci.yml | Switches installs to yarn --immutable and adds Corepack installation step. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Open
wojtekmaj
added a commit
to wojtekmaj/css-to-react-native
that referenced
this pull request
Mar 20, 2026
Yarn v1 is unmaintained, deprecated and full of bugs. styled-components main repo uses pnpm. So there we go! Note: There's an alternative PR, styled-components#204, that just upgrades Yarn to the latest version. Note: Clean migration from yarn.lock lockfile was not possible and it had to be recreated. Therefore, this PR comes with minor dependency differences. As a result, minor formatting changes were also introduced to make lint pass.
wojtekmaj
added a commit
to wojtekmaj/css-to-react-native
that referenced
this pull request
Mar 20, 2026
Yarn v1 is unmaintained, deprecated and full of bugs. styled-components main repo uses pnpm. So there we go! Note: There's an alternative PR, styled-components#204, that just upgrades Yarn to the latest version. Note: Clean migration from yarn.lock lockfile was not possible and it had to be recreated. Therefore, this PR comes with minor dependency differences. As a result, minor formatting changes were also introduced to make lint pass.
Contributor
Author
|
Both @jacobp100 and myself in #205 agree that pnpm is most likely a way to go, so closing this. |
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.
Completely optional, feel free to reject, costed me like 3 minutes of work. Yarn v1 is unmaintained, deprecated and full of bugs. Upgrading to a modern version of Yarn felt like the easiest step out of this mess.
Note: There's an alternative PR, #205, that switches to pnpm instead.