4 ms·
Yarn 2 has killer features - environment-independent lockfiles - yes, you can have the same lockfile and run it behind different proxies with the same resul
by nawgz 5y ago
Yarn 2 has killer features
- environment-independent lockfiles
- yes, you can have the same lockfile and run it behind different proxies with the same result now! very strong for corporate proxy situations with external dev teams
- pnp
- superbly fast package install, gets faster as you use it more
Yarn 2 also has an upfront cost
- all new config (yml)
- also renamed pretty much every property
- docs are decent and mitigate some of this
- doesn't come for free with node.js
- conflicts with npm with regards to commands
- interacts awkwardly with npm config, leading to some situations where yarn installs fail due to npm config being partially and implicitly merged
Overall it's pretty good. Not really sure it's worth it unless install performance or multiple-proxy situations are present at your workplace though.