-
Notifications
You must be signed in to change notification settings - Fork 22
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
Migrate away from Yarn classic (v1) #1837
Comments
Evaluating yarn (v4)
Scripts in workspace don’t find binaries from dev dependenciesIn short, Yarn versions >1 don’t link binaries from the root of a workspace (see relevant issue: yarnpkg/yarn#4543). This breaks our workspace-level and project-level scripts with the On the workspace level, one could work-around this limitation by always listing all dev dependencies also as dev dependencies of the root package.json. Then, one can run, for example, |
Evaluating pnpm (v8)
Unexpected TypeScript errorsOn migrating the project to pnpm, the Output
The issue goes away when installing dependencies with Workspace scriptsBy default, pnpm behaves like Yarn in that binaries that come from one workspace package are only available in that package and not sym-linked to the root. In pnpm, this can be worked around by setting |
Evaluating npm (v10)
Issue: peer dependency conflicts block install (resolved for the time being)One can’t run
|
We decided to go with npm. |
Description
Yarn classic (v1) hasn’t been a recent version of Yarn for a while and is no longer maintained (the last change was in September ’22)
We should probably migrate away from it.
Options are Yarn, pnpm, and npm. See below comments for my evaluation:
TL;DR verdict: npm > pnpm > yarn
The text was updated successfully, but these errors were encountered: