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|
    args = args.clone
    cmd.push('node', '--inspect-brk') if args.delete('--inspect')
    cmd.push('node', '--trace-deprecation') if args.delete('--trace_deprecation')
    cmd.push(*vite_executable)
    cmd.push(*args)
    cmd.push('--mode', config.mode) unless args.include?('--mode') || args.include?('-m')
  end
end