Skip to content

Consider migrating from Yarn Classic to a modern package manager #21606

Closed

Description

@devxoul

Summary

GitHub Desktop currently uses Yarn Classic (1.x), which has been in maintenance mode since 2020. The JavaScript ecosystem has moved significantly forward with faster, more reliable alternatives. Has the team considered migrating to a modern package manager?

Current state

  • engines in package.json specifies "yarn": ">= 1.9"
  • No packageManager field, which means contributors need to manually ensure they're using the correct Yarn version
  • Yarn Classic's resolution algorithm and lockfile format are outdated compared to modern alternatives

Why this matters

  • Yarn Classic is in maintenance mode. It only receives critical patches — no new features, no performance improvements.
  • Contributor friction. Node.js ships with corepack now, and the default yarn resolves to v4. New contributors cloning the repo will hit confusing errors unless they know to downgrade. Adding a packageManager field or migrating would solve this.
  • Performance. Modern package managers offer meaningfully faster installs and better caching — relevant for both local development and CI.
  • Security. Newer tools have improved lockfile integrity checks, stricter dependency resolution, and better audit tooling.

Alternatives worth considering

Package Manager Key Advantages
Yarn 4 (Berry) Plug'n'Play, zero-installs, strict dependency resolution, corepack integration. Migration path from Yarn Classic is well-documented.
pnpm Content-addressable storage (saves disk space), strict node_modules isolation (catches phantom dependencies), fastest install times in benchmarks.
Bun Extremely fast installs, built-in TypeScript/test runner. Newer ecosystem but rapidly maturing.

Questions for the team

  1. Is there a known blocker preventing migration (e.g., Electron build tooling, CI constraints, workspace compatibility)?
  2. Has this been evaluated before, and if so, what were the concerns?
  3. Would the team be open to a community-contributed migration PR if a clear path is identified?

Happy to help investigate compatibility if there's interest.

Activity

  1. added
    triage
    on Feb 12, 2026
  2. sergiou87 commented on Feb 12, 2026

    @sergiou87
    Member

    Hey! Thank you for this @devxoul !

    It's perfect timing because we were working on that already, and we decided to just use vanilla npm which is what other teams use within GitHub.

  3. added and removed
    triage
    on Feb 12, 2026
  4. self-assigned this
    on Feb 12, 2026
  5. devxoul commented on Feb 12, 2026

    @devxoul
    ContributorAuthor

    Sounds awesome. Please feel free to close this at anytime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions