Skip to content

chore: manage shared workspace deps through the pnpm catalog - #7

Open
fengmk2 wants to merge 1 commit into
populate-message-topic-authorfrom
catalog-workspace-deps
Open

chore: manage shared workspace deps through the pnpm catalog#7
fengmk2 wants to merge 1 commit into
populate-message-topic-authorfrom
catalog-workspace-deps

Conversation

@fengmk2

Copy link
Copy Markdown
Member

Summary

OpenSpec

  • This PR implements an OpenSpec change: <!-- change name -->
  • No OpenSpec change is needed (small doc/fix, no shipped behavior change).

Verification

  • pnpm verify passed.
  • A subset was run instead: <!-- commands --> because <!-- reason -->.

Impact Checklist

  • App code (apps/, packages/)
  • API behavior / OpenAPI contract (apps/api/src/routes/*.ts zod-openapi declarations, api/openapi.json via pnpm gen:openapi)
  • Database schema or migration (packages/db)
  • Deployment (deployment/)
  • Documentation (README.md, docs/, wiki/)
  • CI / scripts (.github/workflows/, scripts/, package.json)
  • Secret handling: no real .env, tokens, cookies, private keys, database URLs, or user data committed.

Migration / Deployment Notes

Move every dependency declared by two or more workspace manifests into
the pnpm-workspace.yaml catalog and reference it with catalog:, joining
the vite/vite-plus/vitest entries vp migrate created. Single-package
deps stay where they are.
Resolutions are unchanged except the intended dedupe: apps/api's exact
@types/react 19.2.2 / @types/react-dom 19.2.3 pins collapse onto the
19.2.17 / 19.2.4 versions apps/web already resolved, so the workspace
now type-checks against one copy of the react types.
@fengmk2
fengmk2 marked this pull request as ready for review August 5, 2026 08:44
@fengmk2
fengmk2 requested a review from thonatosAugust 5, 2026 12:51

@thonatosthonatos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review 结论:LGTM(approve)

审查基准:populate-message-topic-author(base) → catalog-workspace-deps(head),仅包含本提交。

已验证

  • Lockfile 一致:本地 pnpm install --lockfile-only --frozen-lockfile 通过;CI --frozen-lockfile + 完整 pnpm verify 双跑均 SUCCESS,lockfile 净减 318 行。
  • 去重符合预期:消除 @types/react@19.2.2@types/react-dom@19.2.3@types/node@22.20.1(+undici-types@6.21.0) 三套重复类型包。
  • 其余版本解析逐一比对无变化。

非阻塞建议

  1. apps/apireact/react-dom 约束从精确 19.2.8 放宽为 catalog: ^19.1.0:当前解析仍为 19.2.8,行为不变;但作为 API 生产依赖,后续 pnpm update 可能漂移。如需保持钉死,可考虑 catalog 内单独用精确值。这是本 PR 唯一真正的语义变化。
  2. PR body 为空模板:建议勾选 No OpenSpec change needed 并补充验证说明,方便合入记录。

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@fengmk2@thonatos