class ViteRuby::Runner

def command_for(args)

Internal: Returns an Array with the command to run.
def command_for(args)
  [config.to_env(env)].tap do |cmd|
    exec_args, vite_args = args.partition { |arg| arg.start_with?("--node-options") }
    cmd.push(*vite_executable(*exec_args))
    cmd.push(*vite_args)
    cmd.push("--mode", config.mode) unless args.include?("--mode") || args.include?("-m")
  end
end