Skip to content

Simplify build / install tool (bun / yarn / npm) logic #180

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

Merged

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 force-pushed the ksylvest/npm-build-tool-selection-fix branch from 2920db0 to 092ef9f Compare January 5, 2024 21:00
@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