File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
lib/generators/inertia/install Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -221,10 +221,13 @@ def install_vite
221221 end
222222
223223 def rename_application_js_to_ts
224- return unless File . exist? ( application_js_path ) && application_layout . read . include? ( "<%= vite_javascript_tag 'application' %>" )
224+ unless File . exist? ( application_js_path ) && application_layout . read . include? ( "<%= vite_javascript_tag 'application' %>" )
225+ return
226+ end
225227
226228 FileUtils . mv ( application_js_path , application_ts_path )
227- gsub_file application_layout . to_s , /<%= vite_javascript_tag 'application' %>/ , "<%= vite_typescript_tag 'application' %>"
229+ gsub_file application_layout . to_s , /<%= vite_javascript_tag 'application' %>/ ,
230+ "<%= vite_typescript_tag 'application' %>"
228231 end
229232
230233 def ruby_vite_installed?
You can’t perform that action at this time.
0 commit comments