Skip to content
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

Switch to Yarn 2 plug and play mode #121

Open
eric-burel opened this issue May 8, 2022 · 1 comment
Open

Switch to Yarn 2 plug and play mode #121

eric-burel opened this issue May 8, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@eric-burel
Copy link
Collaborator

We have setup Yarn 2 in the monorepo for faster install and making Lerna bootstrap obsolete => yarn is able to automatically install the packages correctly for starter apps and packages, with symlink.

Except for a few bugs with Next 12, currently fixed by a patch, it works ok.

We should now try to switch to Yarn 2 plug and play mode to get rid of node_modules, in the monorepo and in starter apps: https://yarnpkg.com/getting-started/migration

@eric-burel eric-burel added the enhancement New feature or request label May 8, 2022
@ghiscoding
Copy link

Just a side note and not directly to your original subject, but you could upgrade Lerna-Lite, which I see you use, to latest version and take advantage of the workspace: protocol which can help keeping smaller downloads and force the use of local dependencies. I'm not sure if it's a Yarn 2+ or Yarn 3 feature though. I migrated the Lerna-Lite project to pnpm and also use the workspace:, it works great.

Cheers and happy coding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants