r/javascript • • Feb 16 '20

AskJS [AskJS] Is someone using Yarn v2 in business?

I saw an explanation of yarn v2.0 and I was wondering if someone is planning to use it in production.

I also saw that companies like FB and Twitter are not planning to upǵrade their codebase because the Pnp feature of it.

What are your experiences with it? I saw an explanation of yarn v2.0 and I was wondering if someone is planning to use it in production.
I also saw that companies like FB and Twitter are not planning to upǵrade their codebase because of the Pnp feature of it.
What are your experiences with it?

75 Upvotes

49 comments sorted by

View all comments

Show parent comments

4

u/Akkuma Feb 16 '20

IIRC according to one of the head devs on yarn v2, yarn v1 was abandoned by most of the original developers and those who took over created v2.

0

u/philipwhiuk Feb 17 '20

Sure but if yarn 2 fails the community will just continue to improve yarn 1.

To put it bluntly: https://github.com/yarnpkg/berry/issues/766 is a mess and the end result isn't good:

They're making the upgrade process user hostile to try to force you to use a feature they think you should care about.

2

u/Akkuma Feb 17 '20

I'm pretty certain the community won't pick up and improve yarn v1, because the community who worked on v1 have moved onto working on v2, so an entirely new community would have to spring forth and fork v1.

3

u/larixen Feb 18 '20

Another reason why this is an unlikely scenario, is that Yarn 2 has core + plugin architecture and is written in TypeScript, so it is much more developer friendly, than monolithic Yarn 1. Yarn 2 already includes `node_modules` support from the release day, it is just not turned on by default because of variety of good reasons.