lib/tasks/vite/verify_install.rake in vite_rails-1.0.8 vs lib/tasks/vite/verify_install.rake in vite_rails-1.0.9
- old
+ new
@@ -9,13 +9,13 @@
Have you run rails vite:install?
Make sure the bin directory and bin/vite are not included in .gitignore
WARN
exit!
end
- unless ViteRails.config.config_path.exist?
- path = ViteRails.config.config_path.relative_path_from(Pathname.new(pwd)).to_s
+ config_path = Rails.root.join(ViteRails.config.config_path)
+ unless config_path.exist?
warn <<~WARN
- Configuration #{ path } file for vite-plugin-ruby not found.
+ Configuration #{ config_path } file for vite-plugin-ruby not found.
Make sure vite:install has run successfully before running dependent tasks.
WARN
exit!
end
end