diff --git a/scripts/check-generated-bindings.mjs b/scripts/check-generated-bindings.mjs index c9b15220a..02bc1675e 100644 --- a/scripts/check-generated-bindings.mjs +++ b/scripts/check-generated-bindings.mjs @@ -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', }, ];