Skip to content

Commit

Permalink
Implement review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
terracatta committed Sep 23, 2023
1 parent 942c5e1 commit 48719a5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/tasks/turbo_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,11 @@ module Turbo
end

def using_bun?
Rails.root.join("bun.lockb").exist? || (tool_exists?('bun') && !Rails.root.join("yarn.lock").exist?)
end

def tool_exists?(tool)
system "command -v #{tool} > /dev/null"
Rails.root.join("bun.config.js").exist?
end
end
end



namespace :turbo do
desc "Install Turbo into the app"
task :install do
Expand Down

0 comments on commit 48719a5

Please sign in to comment.