You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider migrating from Yarn Classic to a modern package manager #21606
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
Is there a known blocker preventing migration (e.g., Electron build tooling, CI constraints, workspace compatibility)?
Has this been evaluated before, and if so, what were the concerns?
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
sergiou87 commentedon Feb 12, 2026
Hey! Thank you for this @devxoul !
It's perfect timing because we were working on that already, and we decided to just use vanilla
npmwhich is what other teams use within GitHub.devxoul commentedon Feb 12, 2026
Sounds awesome. Please feel free to close this at anytime.