#!/bin/bash
# Yarn 镜像配置 - 阿里云
# 由 镜像加速站 自动生成

echo "正在配置 Yarn 镜像源..."

# 设置镜像源
yarn config set registry https://registry.npmmirror.com

# 验证配置
echo "配置完成！当前镜像源："
yarn config get registry

echo "\n✅ Yarn 镜像源已成功配置为 阿里云"
echo "如需恢复官方源，执行: yarn config delete registry"