From 1227111596027e7b407a602e3dcab14729566955 Mon Sep 17 00:00:00 2001 From: zhangtao25 Date: Mon, 18 Nov 2024 16:52:02 +0800 Subject: [PATCH] chore: repo overall update --- packages/canyon-report/package.json | 2 +- tools/canyon-uploader/package.json | 2 +- tools/canyon-uploader/src/commands/map.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/canyon-report/package.json b/packages/canyon-report/package.json index 226fee8a..fd17be28 100644 --- a/packages/canyon-report/package.json +++ b/packages/canyon-report/package.json @@ -1,6 +1,6 @@ { "name": "canyon-report", - "version": "0.0.8-beta-49", + "version": "0.0.8-beta.50", "files": [ "dist" ], diff --git a/tools/canyon-uploader/package.json b/tools/canyon-uploader/package.json index ae783f11..03849913 100644 --- a/tools/canyon-uploader/package.json +++ b/tools/canyon-uploader/package.json @@ -1,6 +1,6 @@ { "name": "canyon-uploader", - "version": "0.0.1-beta.8", + "version": "0.0.1-beta.9", "files": [ "bin", "dist" diff --git a/tools/canyon-uploader/src/commands/map.ts b/tools/canyon-uploader/src/commands/map.ts index f165df7b..0fea7c57 100644 --- a/tools/canyon-uploader/src/commands/map.ts +++ b/tools/canyon-uploader/src/commands/map.ts @@ -3,7 +3,7 @@ import path from "node:path"; import axios from "axios"; export async function mapCommand(params, options) { - const { dsn, project_id:projectID, commit_sha:sha } = params; + const { dsn, project_id:projectID, sha:sha,instrument_cwd:instrumentCwd } = params; // console.log(dsn, projectID, sha); // 判断是否存在.canyon_output文件夹 @@ -32,7 +32,7 @@ export async function mapCommand(params, options) { await axios.post(dsn, { projectID: projectID||process.env.CI_PROJECT_ID||process.env.GITHUB_REPOSITORY, sha: sha||process.env.CI_COMMIT_SHA || process.env.GITHUB_SHA, - instrumentCwd: process.cwd(), + instrumentCwd: instrumentCwd || process.cwd(), coverage: JSON.stringify(data), }); }