Webpacker: Hard dependency on yarn.

Created on 1 Jun 2017  路  4Comments  路  Source: rails/webpacker

Our build machines are locked down pretty tightly and we aren't able to globally install packages. Would it be possible to use (or fallback to?) npm which is standard and ships w/ node.

If not, would you be open to expanding webpacker to enable usage of a locally installed copy of yarn? ./node_modules/.bin/yarn

Most helpful comment

If you only have to pick one, pick the standard one that ships with node. That said, making it configurable with either default seems like the proper path :-)

All 4 comments

It would be great if this was configurable; npm 5's release drastically alters the landscape for yarn, and it would be a mistake for rails to cement itself nonconfigurably onto a tool that may or may not be the best choice in years to come.

@gdborton Feel free to make a PR please 馃憤 May be @ljharb have some ideas around how to make it configurable?

@ljharb Makes sense but I guess at this point we have pick one since both are very similar tools. It would be nice to move away though and leave this option to user 馃槃

If you only have to pick one, pick the standard one that ships with node. That said, making it configurable with either default seems like the proper path :-)

Webpacker is going to follow what we're doing in Rails. If Rails moves to provide an alternative to Yarn, we'll piggyback off that. But we're not going to chart a separate path in Webpacker.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

inopinatus picture inopinatus  路  3Comments

suhomozgy-andrey picture suhomozgy-andrey  路  3Comments

suhomlineugene picture suhomlineugene  路  3Comments

FrankFang picture FrankFang  路  3Comments

iChip picture iChip  路  3Comments