We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ee73a8 commit 969a56bCopy full SHA for 969a56b
lib/generators/inertia/install/install_generator.rb
@@ -221,9 +221,8 @@ def install_vite
221
end
222
223
def rename_application_js_to_ts
224
- unless File.exist?(application_js_path) && application_layout.read.include?("<%= vite_javascript_tag 'application' %>")
225
- return
226
- end
+ return unless File.exist?(application_js_path)
+ return unless application_layout.read.include?("<%= vite_javascript_tag 'application' %>")
227
228
FileUtils.mv(application_js_path, application_ts_path)
229
gsub_file application_layout.to_s, /<%= vite_javascript_tag 'application' %>/,
0 commit comments