@canyonjs/cli 1.0.20 → 1.0.21
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 +10 -2
- package/package.json +3 -4
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import node_fs from "node:fs";
|
|
|
5
5
|
import node_path from "node:path";
|
|
6
6
|
import axios from "axios";
|
|
7
7
|
var package_namespaceObject = {
|
|
8
|
-
rE: "1.0.
|
|
8
|
+
rE: "1.0.21"
|
|
9
9
|
};
|
|
10
10
|
function mergeNumberMaps(a = {}, b = {}) {
|
|
11
11
|
const result = {
|
|
@@ -78,6 +78,9 @@ async function mapCommand(params, options) {
|
|
|
78
78
|
}
|
|
79
79
|
data = mergeCoverageMaps(data, toMerge);
|
|
80
80
|
}
|
|
81
|
+
const env_branch = process.env.CI_COMMIT_BRANCH;
|
|
82
|
+
const env_buildID = process.env.CI_JOB_ID;
|
|
83
|
+
const env_buildProvider = 'gitlab_runner';
|
|
81
84
|
const p = {
|
|
82
85
|
dsn,
|
|
83
86
|
provider: provider || 'gitlab',
|
|
@@ -87,7 +90,12 @@ async function mapCommand(params, options) {
|
|
|
87
90
|
reportID: 'initial_coverage_data',
|
|
88
91
|
reportProvider: 'ci',
|
|
89
92
|
buildTarget: build_target || '',
|
|
90
|
-
coverage: Object.keys(data)
|
|
93
|
+
coverage: Object.keys(data),
|
|
94
|
+
build: {
|
|
95
|
+
buildProvider: env_buildProvider,
|
|
96
|
+
buildID: env_buildID,
|
|
97
|
+
branch: env_branch
|
|
98
|
+
}
|
|
91
99
|
};
|
|
92
100
|
if ('true' === debug) log(p);
|
|
93
101
|
await axios.post(dsn, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canyonjs/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -29,8 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "rslib build",
|
|
32
|
-
"my-test": "npm run build && node ./bin/canyon.js upload",
|
|
33
|
-
"dev": "rslib build --watch"
|
|
34
|
-
"test": "rstest"
|
|
32
|
+
"my-test": "npm run build && node ./bin/canyon.js upload --debug=true",
|
|
33
|
+
"dev": "rslib build --watch"
|
|
35
34
|
}
|
|
36
35
|
}
|