We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d11443 commit 2059939Copy full SHA for 2059939
scripts/sync-component.js
@@ -13,11 +13,15 @@ async function syncComponent() {
13
// Git操作
14
const { execSync } = require("child_process");
15
execSync("git add .");
16
- execSync('git commit -m "chore: sync agent-ui component before release"', { stdio: "inherit" });
+ execSync('git commit -m "chore: sync agent-ui component before release"', {
17
+ stdio: "pipe",
18
+ encoding: "utf-8",
19
+ });
20
21
console.log("✅ 组件同步完成");
- } catch (err) {
- console.log("err.message", err.message);
22
+ } catch (error) {
23
+ const errorOutput = error.stderr ? error.stderr.toString() : error.message;
24
+ console.error("❌ 同步失败:", errorOutput);
25
console.error("❌ 同步失败:", err);
26
process.exit(1);
27
}
0 commit comments