Skip to content

Conversation

ksylvest
Copy link
Contributor

@ksylvest ksylvest commented Jan 5, 2024

Support using NPM instead of bun / yarn (fixes #138). This mirrors the fixes applied in: rails/jsbundling-rails#180

Simplifying ahead of introducing NPM as a build tool.
case
when File.exist?('bun.lockb') then :bun
when File.exist?('yarn.lock') then :yarn
when File.exists('package-lock.json') then :npm
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
when File.exists('package-lock.json') then :npm
when File.exist?('package-lock.json') then :npm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for spotting! Fixed.

@ksylvest ksylvest requested a review from antulik January 10, 2024 18:20
@dhh
Copy link
Member

dhh commented Jan 21, 2024

Included via #145

@dhh dhh closed this Jan 21, 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.

Allow npm instead of yarn

3 participants