Skip to content

Commit

Permalink
Handle :inertia_version options that return either single or multiple…
Browse files Browse the repository at this point in the history
… versions
  • Loading branch information
bknoles committed Jan 30, 2025
1 parent cf31fb1 commit e7ac985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/inertia/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def vite_tag

def inertia_resolved_version
@inertia_resolved_version ||= Gem::Version.new(
`npm show @inertiajs/core@#{options[:inertia_version]} version`.strip
`npm show @inertiajs/core@#{options[:inertia_version]} version --json | tail -n2 | head -n1 | tr -d '", '`.strip
)
end

Expand Down

0 comments on commit e7ac985

Please sign in to comment.