文档:修正生成绑定校验提示里缺少的 cargo 参数

- shared-contracts 提示补上 --manifest-path server-rs/Cargo.toml:仓库根没有 Cargo.toml,照抄提示会直接失败
- 两条提示都补上 --locked,与实际执行的 cargo 命令保持一致
This commit is contained in:
2026-10-02 22:29:02 +08:00
parent 09f007d519
commit bfbcb1dd02
+2 -2
View File
@@ -52,7 +52,7 @@ const targets = [
'export_bindings',
],
formatDirs: [],
hint: 'cargo test -p shared-contracts --features ts-bindings export_bindings',
hint: 'cargo test --locked -p shared-contracts --features ts-bindings --manifest-path server-rs/Cargo.toml export_bindings',
},
{
label: 'ai-game-creator-shell',
@@ -67,7 +67,7 @@ const targets = [
// ts-rs 落盘后按仓库格式跑一遍 prettier,比较的才是"提交时应有的内容"
// (ui-editor 的绑定被 `.prettierignore` 忽略,不在里面)。
formatDirs: [AGC_CHAT_DIR, AGC_SERVICES_DIR],
hint: 'cargo test --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml export_bindings && npx prettier --write apps/ai-game-creator-shell/src/view/project-development/chat/generated apps/ai-game-creator-shell/src/services/generated',
hint: 'cargo test --locked --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml export_bindings && npx prettier --write apps/ai-game-creator-shell/src/view/project-development/chat/generated apps/ai-game-creator-shell/src/services/generated',
},
];