Files
antd-admin/apps/docs/content/zh/getting-started/updating-releases.mdx
zuiideaandCursor b8bb7713b3 docs: align site with modular src/api layout
Document API_PREFIX, folder structure, templates, and E2E script usage in en/zh.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 21:17:47 +08:00

20 lines
877 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 升级与更新
description: 依赖与模板演进时的建议
---
# 升级与更新
## 依赖升级
- 使用 **Vite+**(`vp`)管理依赖,避免绕过 `vp` 直接大面积 `pnpm up` 导致与模板锁定的工具链不一致。
- 升级 **Ant Design / TanStack / React** 大版本前,建议先阅读官方迁移说明,并在单分支上跑通 `vp check`、`test:unit`、`pnpm run test:e2e`(或指定核心 spec)与 `vp build`。
## 跟随本仓库模板
若从本 monorepo 拷贝或对比模板代码,可用 `git` 按需 cherry-pick 改动,并注意 **`apps/basic` 与 `apps/with-lingui` 在 i18n 与文案上的差异**,避免把 Lingui 专用改动误合并到 basic。
## With Lingui 文案
升级 `@lingui/*` 后建议执行 `pnpm run i18n:extract` 与 `pnpm run i18n:compile`,并检查 `src/locales` 是否有冲突或弃用 API。