-
Notifications
You must be signed in to change notification settings - Fork 19
Switch to yarn #15
Comments
by the way. I have no idea why we have |
Not sure if this matters:
|
I don't feel qualified to have an opinion on this. But also: is this a thing we should try to make consistent across our projects? I mean if yarn is better, is it also better for kumascript and browser-compat-data and interactive-examples? This feels to me like a thing we should get consensus across the team and apply consistently. |
I'm wondering if this will introduce some unneeded contributor friction. When I install Node on my machine, I get |
Yeah. Maybe. But not right now. It's more complicated there because of the breadth and legacy. mdn2 is all |
Senior JS developers who have experienced both usually prefer When I worked in Product Delivery (last team before MDN) all JS projects used yarn and we were very happy with that. |
By the way, to me, a killer feature that we'd get right now is that with our current |
Also,
I'm more than happy to take stabs at projects like |
Another reason why I prefer yarn is that you can poke at sub-dependencies without necessarily installing them. For example, one of your First of all, with
and it lists all "parents" of that package. Second, you can then indicate that no sub-dependency uses a version older than "resolutions": {
"fstream": ">=1.0.12"
} and run With |
I'm totally happy to believe that yarn is better, but the point stands: I'd like us to have a considered and consistent policy for this across the MDN team. Adding more reasons yarn is better doesn't change that. As a minimum, I'd like to bring this topic up in a whole-team setting and either:
|
I can draft a draft ADR to be discussed in Whistler. |
Thank you! (I don't think it needs to be in Whistler, FWIW, email is fine. But Whistler is probably a good chance to pin people down.) |
yarn is still much better than npm. It's faster, has support for "resolutions", easier to upgrade packages, ability to check that packages weren't manually added (without using the cli), etc. And from experience feels a lot more predictable and solid than npm.
Just today, I checked out master and ran
npm install
and it caused this massive change topackage-lock.json
The text was updated successfully, but these errors were encountered: