What package manager should we use for all projects? #61
-
Throughout the majority of MDN's repositories, Yarn (Classic) is used for package management. However some repositories (namely browser-compat-data) use NPM. This inconsistency can be slightly jarring for contributors, as they'd have to use (slightly, but still) different commands between repositories governed by the same organization. I think it would be great for us to decide which package manager we should consistently use across the projects. Here are some pros and cons to some package managers:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
My personal preference for yarn was based on the following, possibly outdated arguments:
Now most likely these arguments no longer hold, as npm had a lot of time to catch up, and probably did.
This might be a blocker, because we (read: MDN Engineering team) hear that folks want to use the latest LTS version of NodeJS, but at the same time we're currently stuck at NodeJS 14 with mdn/yari, because we're using AWS Lambdas that don't support NodeJS 16 yet (which will no longer be a problem by 2023, because we're migrating to GCP). @queengooborg Can you tell how significant those compatibility issues with If those arguments no longer hold and if there is no blocker, we would probably prefer to switch everything to npm. (cc @fiji-flo) |
Beta Was this translation helpful? Give feedback.
-
I personally am in favor of NPM. Mainly because it's one less dependency to care about. And I think opting for the default is something good if there's no really strong reason not to. |
Beta Was this translation helpful? Give feedback.
-
Hey everyone! Thank you for starting this discussion @queengooborg! I believe we have come to a point where a vote is in order 😄 Please cast your vote for which package manager you would prefer: #108 |
Beta Was this translation helpful? Give feedback.
-
I prefer npm, I think it's more popular and easier to use |
Beta Was this translation helpful? Give feedback.
-
FWIW We voted to adopt npm, and there is a work-in-progress PR to migrate to yari, but we didn't get to finish that one yet. |
Beta Was this translation helpful? Give feedback.
FWIW We voted to adopt npm, and there is a work-in-progress PR to migrate to yari, but we didn't get to finish that one yet.