From 358691f237b522e6cea75b51bc6afccd7c402a56 Mon Sep 17 00:00:00 2001 From: ruan-cat <1219043956@qq.com> Date: Tue, 3 Dec 2024 17:08:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore(vercel-deploy-tool):=20?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E9=83=A8=E7=BD=B2=E4=BF=A1=E6=81=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vercel-deploy-tool/CHANGELOG.md | 6 ++++++ packages/vercel-deploy-tool/package.json | 2 +- packages/vercel-deploy-tool/src/index.ts | 14 +++++++++++--- tests/monorepo-1/turbo.json | 4 ++-- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/packages/vercel-deploy-tool/CHANGELOG.md b/packages/vercel-deploy-tool/CHANGELOG.md index cdf9867..0f0c0b1 100644 --- a/packages/vercel-deploy-tool/CHANGELOG.md +++ b/packages/vercel-deploy-tool/CHANGELOG.md @@ -1,5 +1,11 @@ # @ruan-cat/vercel-deploy-tool +## 0.4.2 + +### Patch Changes + +- 输出部署信息。 + ## 0.4.1 ### Patch Changes diff --git a/packages/vercel-deploy-tool/package.json b/packages/vercel-deploy-tool/package.json index 0b8442c..ce7d6a2 100644 --- a/packages/vercel-deploy-tool/package.json +++ b/packages/vercel-deploy-tool/package.json @@ -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", diff --git a/packages/vercel-deploy-tool/src/index.ts b/packages/vercel-deploy-tool/src/index.ts index 4b8f63b..5fd079c 100644 --- a/packages/vercel-deploy-tool/src/index.ts +++ b/packages/vercel-deploy-tool/src/index.ts @@ -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); @@ -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; }), diff --git a/tests/monorepo-1/turbo.json b/tests/monorepo-1/turbo.json index 86d07d2..a1f180c 100644 --- a/tests/monorepo-1/turbo.json +++ b/tests/monorepo-1/turbo.json @@ -17,8 +17,8 @@ }, "do-multi-build": { "dependsOn": [ - "vp-hope:build" - // "vip:build" + // "vp-hope:build" + "vip:build" // "vip-carbon:build" ] }