chore(deps): 将包管理器从 npm 迁移到 pnpm

- docs: 更新 README 和 README_CN 中的安装说明
- build: 添加 pnpm-lock.yaml 和 .npmrc 配置
- build: 删除 package-lock.json 锁文件
- fix: 解决 peer dependency 冲突(legacy-peer-deps)
- perf: pnpm 提供更快的安装速度和更小的磁盘占用

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Jiahao Luo
2026-01-05 10:05:33 +08:00
parent 090c9e665b
commit a11a0f289c
5 changed files with 5557 additions and 10798 deletions

4
frontend/.npmrc Normal file
View File

@@ -0,0 +1,4 @@
legacy-peer-deps=true
# 允许运行所有包的构建脚本
# esbuild 和 vue-demi 是已知安全的包,需要 postinstall 脚本才能正常工作
ignore-scripts=false

10784
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

5533
frontend/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff