From b8a602beeedd7df3a3ee23907b45dfc7c7c3b410 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Tue, 26 Mar 2024 09:22:07 +1300 Subject: [PATCH] feat: check the manager is obvious as part of `shakapacker:info` --- lib/tasks/shakapacker/info.rake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tasks/shakapacker/info.rake b/lib/tasks/shakapacker/info.rake index c271ad569..552e5ca56 100644 --- a/lib/tasks/shakapacker/info.rake +++ b/lib/tasks/shakapacker/info.rake @@ -1,5 +1,6 @@ require "shakapacker/version" require "shakapacker/utils/misc" +require "shakapacker/utils/manager" namespace :shakapacker do desc "Provide information on Shakapacker's environment" @@ -10,6 +11,8 @@ namespace :shakapacker do $stdout.puts "Shakapacker: #{Shakapacker::VERSION}" $stdout.puts "Node: #{`node --version`}" + Shakapacker::Utils::Manager.warn_unless_package_manager_is_obvious! + require "package_json" pj_manager = PackageJson.read.manager