-
Notifications
You must be signed in to change notification settings - Fork 7
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
Investigate Yarn 2 #655
Comments
There is one major blocker for this: Does Gatsby Cloud support Yarn 2?We have to try. |
Is yarn 2 backwards compatible? Can you install a yarn 2 project with yarn 1? |
Looks like it is. Yarn 2+ creates a new file in the repository, e.g.
|
Another finding. A project using Yarn 1 is just a set of files. With Yarn 2 it's more complicated. Tricks like the following one do not work anymore. silverback-mono/packages/npm/@amazeelabs/scaffold/test.sh Lines 14 to 18 in 62a21c1
Yarn 2 knows that the parent dir is a workspace belonging to
It's solvable of course. But just something to keep in mind. |
#658 uses Yarn 2 with I checked
Yarn 1 is faster 😅 Yarn 2 is faster in re-run just because it does not run Other findings:
I would stay on Yarn 1 for now. Yarn 2 with |
1. Yarn 1 has issues with focused installs, while Yarn 2 supports them. Currently it's not really possible to install dependencies just for a single workspace. The current workaround is not good. With Yarn 2 it should be easy.
2. Yarn 2 has zero-installs feature. Would be nice to try it for this monorepo. Maybe it will speed up our workflows.
The text was updated successfully, but these errors were encountered: