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" ] }