Skip to content

Conversation

ksylvest
Copy link
Contributor

@ksylvest ksylvest commented Jan 5, 2024

The prior logic for selecting a tool (either bun / yarn / npm) became confusing with multiple tools (and the JS ecosystem has many tools). This simplifies the logic and fixes a subtle bug where a package-lock.json is ignored if bun is installed. This issue seems to have been introduced with:

https://github.com/rails/jsbundling-rails/pull/179/files

The prior logic for selecting a tool (bun / yarn / npm) scaled poorly
with many tools (and the JS ecosystem has many tools). This also
includes a logic fix for when bun is installed but a package-lock.json
is present.
@ksylvest ksylvest changed the title Simplify build / install tool (bun / yarn / nom) logic Simplify build / install tool (bun / yarn / npm) logic Jan 5, 2024
@rafaelfranca rafaelfranca merged commit 44919fe into rails:main Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants