docs(contributing): 按真实 root scripts 重写三条死的开发服务器命令 (#3596) - #3615
Merged
Conversation
pnpm designer / pnpm prototype 在 root package.json 里没有对应 script, pnpm docs:dev 已随 docs: → site: 改名。三条照抄即报 Command not found。 - designer:packages/plugin-designer 是库(scripts 只有 build/clean/test/ type-check/lint,无 dev),没有独立 demo 入口;FieldDesigner 实际挂在 console 里,故改为 pnpm dev,并在注释里如实说明它没有自己的 demo。 - prototype:全 workspace 零命中,无同名包/脚本;改为实测可解析的 pnpm --filter @object-ui/example-console-starter dev。 - docs:dev → site:dev(root script 实测存在)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GTRjn8xBqp75dk7kFupVRt
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
yinlianghui
marked this pull request as ready for review
August 7, 2026 15:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3596
### Running Development Servers一节三条命令全部不可运行。本 PR 只改这一节的围栏内容,逐条以 rootpackage.json实测结果为准重写,没有发明命令。前提复核(三条全部坐实)
分支点
origin/main@42ae5c62a:四个名字里只有
site:dev命中。designer/prototype/docs:dev在 root scripts 里都不存在 —— 与单子正文一致。逐条处置与证据
pnpm designerpnpm devpackages/plugin-designer的 scripts 只有build/clean/test/type-check/lint,没有dev—— 所以pnpm --filter @object-ui/plugin-designer dev这种形式跑不通,不能写。它是库不是 demo:FieldDesigner由apps/console/src/components/schema/ObjectFieldDesignerWidget.tsx:15导入,经registerObjectDetailWidgets.ts:72注册为object-field-designer。可视化设计器真正跑起来的地方就是 console,而 console 的 root script 是devpnpm prototypepnpm --filter @object-ui/example-console-starter devgrep -rn 'prototype' --include=package.json packages apps examples docs→ 零命中,没有同名包、脚本或包名子串。无从建立等价关系(仓库历史是 shallow graft,161 commits,查不到这两个 script 曾经存在)。故不宣称 console-starter 就是当年的 prototype,只按「跑一个 example」这个真实需求写实测可用的入口pnpm docs:devpnpm site:devsite:dev→pnpm --filter @object-ui/site dev。无歧义新写的三条全部验证为原则上可运行(只验解析,未真的起服务):
example 那条的括号注释同样是实测的:有
dev的 example 只有console-starter与byo-backend-console;hello-world没有、schema-catalog是数据包 —— 与README.md:74-80的既有表述一致。通读全节
改完把
## Development Workflow整节读了一遍(Running Development Servers / Building / Testing / Linting)。相邻各节的命令全部实测存在:root 的build/test/test:watch/test:ui/test:coverage/lint均在;cd packages/core && pnpm build与cd packages/react && pnpm lint两个包也都在且带对应 script。本节之外无需改动,无新发现可立单。门禁(先预告再跑,三项全中)
扫描面状态(如实报告,与派单预设相反):派单说「若 #3589 已合并,CONTRIBUTING.md 就在扫描面里」。#3589 目前仍是 open、未合并,所以我的分支点上
SCAN_ROOTS仍是content/docs/examples/README.md三根,门禁打印的正是across 3 scan roots—— 这个数字与 #3589 自己那张逆向验证表第 4 行(撤掉三行 →Links are valid across 3 scan roots.)完全吻合,可互为佐证。无论 #3589 是否落地,本改动都不会让该门禁变红:改动整块在 ```bash 围栏内,
stripCode()(`check-doc-links.mjs:281`,调用点 `:577`)扫描前会把围栏抹掉;而且本次一条 markdown 链接都没有增删。#3589 也没有触碰 `CONTRIBUTING.md`,两边零冲突。无 changeset:根目录贡献文档,非用户可见的产品变更。未触碰
content/docs/releases/。Generated by Claude Code