From 48719a5bcff0887bb3869e5c5b0351726347b9fa Mon Sep 17 00:00:00 2001 From: Jason Meller Date: Sat, 23 Sep 2023 09:27:19 -0400 Subject: [PATCH] Implement review suggestions --- lib/tasks/turbo_tasks.rake | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/tasks/turbo_tasks.rake b/lib/tasks/turbo_tasks.rake index 94c00329..de72ac8f 100644 --- a/lib/tasks/turbo_tasks.rake +++ b/lib/tasks/turbo_tasks.rake @@ -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