lib/vite_ruby/commands.rb in vite_ruby-3.6.2 vs lib/vite_ruby/commands.rb in vite_ruby-3.7.0

- old
+ new

@@ -107,14 +107,14 @@ ViteRuby.framework_libraries.each do |framework, library| $stdout.puts "#{ library.name }: #{ library.version }" $stdout.puts "#{ framework }: #{ Gem.loaded_specs[framework]&.version }" end - $stdout.puts "node: #{ `node --version` }" - $stdout.puts "npm: #{ `npm --version` }" - $stdout.puts "yarn: #{ `yarn --version` rescue nil }" - $stdout.puts "pnpm: #{ `pnpm --version` rescue nil }" $stdout.puts "ruby: #{ `ruby --version` }" + $stdout.puts "node: #{ `node --version` }" + + pkg = config.package_manager + $stdout.puts "#{ pkg }: #{ `#{ pkg } --version` rescue nil }" $stdout.puts "\n" packages = `npm ls vite vite-plugin-ruby` packages_msg = packages.include?('vite@') ? "installed packages:\n#{ packages }" : '❌ Check that vite and vite-plugin-ruby have been added as development dependencies and installed.' $stdout.puts packages_msg