@canyonjs/cli 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import node_fs from "node:fs";
|
|
|
4
4
|
import node_path from "node:path";
|
|
5
5
|
import axios from "axios";
|
|
6
6
|
var package_namespaceObject = {
|
|
7
|
-
rE: "1.0.
|
|
7
|
+
rE: "1.0.30"
|
|
8
8
|
};
|
|
9
9
|
function mergeNumberMaps(a = {}, b = {}) {
|
|
10
10
|
const result = {
|
|
@@ -61,6 +61,11 @@ function mergeCoverageMaps(target = {}, source = {}) {
|
|
|
61
61
|
}
|
|
62
62
|
async function mapCommand(params, options) {
|
|
63
63
|
console.log('Current working directory:', process.cwd());
|
|
64
|
+
if (process.env.GITHUB_EVENT_PATH) {
|
|
65
|
+
const event = JSON.parse(node_fs.readFileSync(process.env.GITHUB_EVENT_PATH, 'utf8'));
|
|
66
|
+
const pr = event.pull_request;
|
|
67
|
+
console.log(pr.number, pr.id);
|
|
68
|
+
} else console.log('not found GITHUB_EVENT_PATH');
|
|
64
69
|
const { dsn, repo_id: repoID, sha, provider, build_target, debug, instrument_cwd, filter, scene } = params;
|
|
65
70
|
if (!node_fs.existsSync(node_path.resolve(process.cwd(), '.canyon_output'))) return void console.log('No .canyon_output directory found, skipping upload.');
|
|
66
71
|
const files = node_fs.readdirSync(node_path.resolve(process.cwd(), '.canyon_output'));
|