-
Notifications
You must be signed in to change notification settings - Fork 503
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Yarn 2 #2326
Comments
One of the nasty bugs we encountered when using workspaces just got "ignored" with this comment: |
Great to hear this!
This official document goes into great detail about migration footguns. Have you had a chance to review this doc? |
@bershanskiy What worries me the most is that a lot of people will have Node and Yarn 1 installed on their machines. If they now can't start Yari because they have to figure out how to get No, I haven't yet had a chance to read that whole document. I haven't even had a chance to install it myself for my own projects. Does it say anything useful/interesting to calm my keep-it-simple-for-most-people nerves? |
PS. There are some cool features in Node >10 but we deliberately kept the minimum to Node >=10 just to keep things are easy and pain-free as possible for most contributors. However, for the Yari project, I think we can be a bit more "aggressive". Only a handful of coders will work on mdn/yari. But 10x will be expected to work on mdn/content. And the "audience" is different (aka skill levels). |
Luckily, that doc is very anti-climactic: it basically urges people to migrate away from old config files, old package versions, old ways to call things. After light searching through yari's code, I couldn't find a single incompatibility. However, I didn't test anything yet. I'll try yarn 2 over the weekend and report back the results. :) |
@bershanskiy Any updates? |
FWIW @queengooborg tried to update us to the latest yarn version in #6271. And even though we want to migrate to npm eventually, migrating to yarn v2/v3 first is still an option. |
Why not migrate to |
We will switch to npm in #6322 by May 2023, and no longer plan upgrading to Yarn 2. |
There's no denying, Yarn 1 is slowly losing momentum compared to Yarn 2 (and
npm
~6).https://yarnpkg.com/getting-started/qa#why-should-you-upgrade-to-yarn-modern
I actually don't think it would be that hard to upgrade Yari to it but for the mdn/content we want to keep things as simple as possible because we expect a LOT of content contributors to check it out and run yarn/node to do previewing. For that, it would most convenient if we did NOT rely on bleeding edge versions.
This issue should first be about documenting the impact of "requiring" Yarn 2. And secondly, about implementing the switch to it.
The text was updated successfully, but these errors were encountered: