-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Alternatives to Yarn #2467
Comments
(comments here were made before Microsoft acquired npm)
The alternative is
What don't you like about Yarn, what you do like about npm?
It doesn't seem like it would be too hard, Yarn isn't too ingrained into webpacker (non-doc, *.rb files): |
A question that would be worth considering is: why is package installation in scope for this library? If Node modules were being installed into Rails projects exclusively to support running Webpacker, then it would make sense to hide the implementation details, but that's not the case. What if we considered what it would look like for Webpacker to reduce the set of assumptions it makes about the Node environment to what's actually built into Node, i.e. the module resolution system built on It would be reasonable then, for example, for Rails to add entries to |
As I think @jcoglan aludes to, I think the question isn't about "why shouldn't we use Yarn?", it's about "why should we force a decision about how people must manage their dependencies on them?". |
I have certainly been where you are right now (#1938 (comment)) & understand where you are coming from:
But, Rails is all about convention over configuration, you might just be outgrowing webpacker 👍. If the only reason for this ticket is to lobby for |
TIL, this was settled 3 years ago: #475 (comment) |
I guess my context is coming from working primarily in JavaScript land, where I've been accustomed to being able to make my own decisions about package managers. As I said in my original post, there are more package managers than Yarn and |
I have to respect what DHH said in #475 (comment), I cannot guarantee that a PR would be considered.
Reading this again, I think a PR to document the path to Side noteThe bower issue ( bower/bower/issues/2467 ) for moving to `npm` is the same issue number as this one, small world I guess. |
Ok, I'll take a look at this when I have some time. Thanks. |
|
Is there a particular reason for forcing use of Yarn? There are more package managers for JavaScript, such as
pnpm
ornpm
itself, and it would be useful to be able to use one of them instead. Each tool has its own cost-benefits. I'd settle for making it pluggable, and letting the community manage plugins for it.The text was updated successfully, but these errors were encountered: