Skip to content

Commit 2059939

Browse files
committed
chore: sync agent-ui component before release
1 parent 8d11443 commit 2059939

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/sync-component.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ async function syncComponent() {
1313
// Git操作
1414
const { execSync } = require("child_process");
1515
execSync("git add .");
16-
execSync('git commit -m "chore: sync agent-ui component before release"', { stdio: "inherit" });
16+
execSync('git commit -m "chore: sync agent-ui component before release"', {
17+
stdio: "pipe",
18+
encoding: "utf-8",
19+
});
1720

1821
console.log("✅ 组件同步完成");
19-
} catch (err) {
20-
console.log("err.message", err.message);
22+
} catch (error) {
23+
const errorOutput = error.stderr ? error.stderr.toString() : error.message;
24+
console.error("❌ 同步失败:", errorOutput);
2125
console.error("❌ 同步失败:", err);
2226
process.exit(1);
2327
}

0 commit comments

Comments
 (0)