class ViteRuby::Runner

def vite_executable

Internal: Resolves to an executable for Vite.
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