Skip to content

Update to modern version of Yarn#204

Closed
wojtekmaj wants to merge 1 commit intostyled-components:masterfrom
wojtekmaj:yarn-4
Closed

Update to modern version of Yarn#204
wojtekmaj wants to merge 1 commit intostyled-components:masterfrom
wojtekmaj:yarn-4

Conversation

@wojtekmaj
Copy link
Contributor

@wojtekmaj wojtekmaj commented Mar 20, 2026

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.

Copilot AI review requested due to automatic review settings March 20, 2026 09:48
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.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 packageManager and add Yarn Berry config (.yarnrc.yml).
  • Expand .gitignore to cover Yarn/Berry artifacts and common generated outputs.
  • Update CI to use --immutable installs and add a Corepack install step; add a short CONTRIBUTING.md with 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.

@wojtekmaj wojtekmaj mentioned this pull request Mar 20, 2026
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.
@wojtekmaj
Copy link
Contributor Author

Both @jacobp100 and myself in #205 agree that pnpm is most likely a way to go, so closing this.

@wojtekmaj wojtekmaj closed this Mar 20, 2026
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.

2 participants