Skip to content

Commit

Permalink
✨ feat(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 9d36d8f commit 26e7a2b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 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.1

### Patch Changes

- 输出部署任务的错误日志。

## 0.4.0

### Minor 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.0",
"version": "0.4.1",
"description": "阮喵喵自用的vercel部署工具,用于实现复杂项目的部署。",
"type": "module",
"main": "./src/index.ts",
Expand Down
9 changes: 8 additions & 1 deletion packages/vercel-deploy-tool/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,14 @@ async function main() {
generateSimpleAsyncTask(async () => {
const deploy = generateDeployTask(deployTarget);
consola.start(` 开始部署任务 `);
const { stdout } = await deploy();
const { stdout, error } = await deploy();

if (error) {
consola.error(" 部署失败了 ");
consola.error(error);
return;
}

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

0 comments on commit 26e7a2b

Please sign in to comment.