Skip to content

Commit

Permalink
If you create a new rails project with "--main --javascript bun" (#127)
Browse files Browse the repository at this point in the history
you end up with a yarn.lock and not a bun.lockb file.  This is
because turbo-rails and stimuls are installed with yarn.
  • Loading branch information
rubys authored Jan 3, 2024
1 parent b87c71f commit 0efe089
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/install/stimulus_with_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@
end

say "Install Stimulus"
run "yarn add @hotwired/stimulus"
if Rails.root.join("bun.config.js")).exist?
run "bun add @hotwired/stimulus"
else
run "yarn add @hotwired/stimulus"
end

0 comments on commit 0efe089

Please sign in to comment.