class ViteRuby::Runner
def vite_executable
def vite_executable bin_path = config.vite_bin_path return [bin_path] if File.exist?(bin_path) if config.root.join('yarn.lock').exist? %w[yarn vite] else ["#{ `npm bin`.chomp }/vite"] end end
def vite_executable bin_path = config.vite_bin_path return [bin_path] if File.exist?(bin_path) if config.root.join('yarn.lock').exist? %w[yarn vite] else ["#{ `npm bin`.chomp }/vite"] end end