Skip to content

Commit

Permalink
🐳 chore(vercel-deploy-tool): 输出部署信息。
Browse files Browse the repository at this point in the history
  • Loading branch information
ruan-cat committed Dec 3, 2024
1 parent 26e7a2b commit 358691f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
6 changes: 6 additions & 0 deletions packages/vercel-deploy-tool/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @ruan-cat/vercel-deploy-tool

## 0.4.2

### Patch Changes

- 输出部署信息。

## 0.4.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vercel-deploy-tool/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ruan-cat/vercel-deploy-tool",
"version": "0.4.1",
"version": "0.4.2",
"description": "阮喵喵自用的vercel部署工具,用于实现复杂项目的部署。",
"type": "module",
"main": "./src/index.ts",
Expand Down
14 changes: 11 additions & 3 deletions packages/vercel-deploy-tool/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,9 @@ async function main() {
parameters: [],
});
consola.start(` 开始用户命令任务 `);
const { stdout } = await userCommand();
const child = await userCommand();
process.stdout.write(child.stdout);
process.stderr.write(child.stderr);
// consola.success(` 完成用户命令任务 ${code} `);
consola.success(` 完成用户命令任务 `);
// consola.box(stdout);
Expand Down Expand Up @@ -511,17 +513,23 @@ async function main() {
generateSimpleAsyncTask(async () => {
const deploy = generateDeployTask(deployTarget);
consola.start(` 开始部署任务 `);
const { stdout, error } = await deploy();
const { stdout, error, stderr } = await deploy();

if (error) {
consola.error(" 部署失败了 ");
consola.error(" 部署失败了 \n");
consola.error(error);
process.stderr.write(stderr);
return;
}

const vercelUrl = stdout.toString();
consola.success(` 完成部署任务 检查生成的url为 \n `);
consola.box(vercelUrl);

consola.success(` 部署任务输出如下: \n`);
process.stdout.write(stdout);
console.log(`\n`);

return vercelUrl;
}),

Expand Down
4 changes: 2 additions & 2 deletions tests/monorepo-1/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
},
"do-multi-build": {
"dependsOn": [
"vp-hope:build"
// "vip:build"
// "vp-hope:build"
"vip:build"
// "vip-carbon:build"
]
}
Expand Down

0 comments on commit 358691f

Please sign in to comment.