Skip to content

Commit

Permalink
feat: check the manager is obvious as part of shakapacker:info
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Mar 25, 2024
1 parent 0bcb560 commit b8a602b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tasks/shakapacker/info.rake
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down

0 comments on commit b8a602b

Please sign in to comment.