File tree 4 files changed +4
-5
lines changed
lib/generators/inertia/install
4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 25
25
tailwind : [true, false]
26
26
ruby : ['3.3']
27
27
node : ['22']
28
- inertia_version : ['1.2.0', 'next ', 'beta ']
28
+ inertia_version : ['1.2.0', '1.3 ', '2.0 ']
29
29
exclude :
30
30
# 1.2.0 does not support typescript
31
31
- typescript : true
Original file line number Diff line number Diff line change @@ -78,8 +78,7 @@ def install_inertia
78
78
template 'initializer.rb' , file_path ( 'config/initializers/inertia_rails.rb' )
79
79
80
80
say 'Installing Inertia npm packages'
81
- add_dependencies ( *FRAMEWORKS [ framework ] [ 'packages' ] )
82
- add_dependencies ( inertia_package )
81
+ add_dependencies ( inertia_package , *FRAMEWORKS [ framework ] [ 'packages' ] )
83
82
84
83
unless File . read ( vite_config_path ) . include? ( FRAMEWORKS [ framework ] [ 'vite_plugin_import' ] )
85
84
say "Adding Vite plugin for #{ framework } "
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ createInertiaApp({
32
32
33
33
setup({ el, App, props }) {
34
34
if (el) {
35
- <%= " // @ts-expect-error 1.3.0 beta contains types mismatch\n" if inertia_resolved_version == Gem::Version.new('1.3.0-beta.2 ') -%>
35
+ <%= " // @ts-expect-error 1.3.0 contains types mismatch\n" if inertia_resolved_version.release == Gem::Version.new('1.3.0') -%>
36
36
mount(App, { target: el, props })
37
37
} else {
38
38
console.error(
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ createInertiaApp({
31
31
32
32
setup({ el, App, props }) {
33
33
if (el) {
34
- <%= "// @ts-expect-error 1.3.0 beta contains types mismatch\n" if inertia_resolved_version == Gem::Version.new('1.3.0-beta.2 ') -%>
34
+ <%= "// @ts-expect-error 1.3.0 beta contains types mismatch\n" if inertia_resolved_version.release == Gem::Version.new('1.3.0') -%>
35
35
new App({ target: el, props })
36
36
} else {
37
37
console.error(
You can’t perform that action at this time.
0 commit comments