@o3r/schematics 11.3.0-prerelease.4 → 11.3.0-prerelease.40
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@o3r/schematics",
|
3
|
-
"version": "11.3.0-prerelease.
|
3
|
+
"version": "11.3.0-prerelease.40",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"@angular-devkit/core": "~18.2.0",
|
31
31
|
"@angular-devkit/schematics": "~18.2.0",
|
32
32
|
"@angular/cli": "~18.2.0",
|
33
|
-
"@o3r/telemetry": "^11.3.0-prerelease.
|
33
|
+
"@o3r/telemetry": "^11.3.0-prerelease.40",
|
34
34
|
"@schematics/angular": "~18.2.0",
|
35
35
|
"eslint": "^8.57.0",
|
36
36
|
"rxjs": "^7.8.1",
|
@@ -85,9 +85,9 @@
|
|
85
85
|
"@nx/eslint-plugin": "~19.5.0",
|
86
86
|
"@nx/jest": "~19.5.0",
|
87
87
|
"@nx/js": "~19.5.0",
|
88
|
-
"@o3r/build-helpers": "^11.3.0-prerelease.
|
89
|
-
"@o3r/eslint-plugin": "^11.3.0-prerelease.
|
90
|
-
"@o3r/telemetry": "^11.3.0-prerelease.
|
88
|
+
"@o3r/build-helpers": "^11.3.0-prerelease.40",
|
89
|
+
"@o3r/eslint-plugin": "^11.3.0-prerelease.40",
|
90
|
+
"@o3r/telemetry": "^11.3.0-prerelease.40",
|
91
91
|
"@schematics/angular": "~18.2.0",
|
92
92
|
"@stylistic/eslint-plugin-ts": "~2.4.0",
|
93
93
|
"@types/inquirer": "~8.2.10",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../../src/utility/wrapper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../../src/utility/wrapper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AA2CvD;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBA4CnD,CAAC"}
|
package/src/utility/wrapper.js
CHANGED
@@ -13,7 +13,8 @@ const setupO3rMetricsInPackageJson = (activated) => (tree) => {
|
|
13
13
|
if (tree.exists(PACKAGE_JSON_PATH)) {
|
14
14
|
const packageJson = tree.readJson(PACKAGE_JSON_PATH);
|
15
15
|
packageJson.config ||= {};
|
16
|
-
packageJson.config.
|
16
|
+
packageJson.config.o3r ||= {};
|
17
|
+
packageJson.config.o3r.telemetry = activated;
|
17
18
|
tree.overwrite(PACKAGE_JSON_PATH, JSON.stringify(packageJson, null, 2));
|
18
19
|
}
|
19
20
|
};
|
@@ -53,7 +54,7 @@ const createSchematicWithMetricsIfInstalled = (schematicFn) => (opts) => async (
|
|
53
54
|
// Do not throw if `@o3r/telemetry is not installed
|
54
55
|
if ((process.env.NX_CLI_SET !== 'true' || process.env.NX_INTERACTIVE === 'true')
|
55
56
|
&& context.interactive
|
56
|
-
&& typeof packageJson.config?.
|
57
|
+
&& typeof packageJson.config?.o3r?.telemetry === 'undefined'
|
57
58
|
&& process.env.O3R_METRICS !== 'false'
|
58
59
|
&& opts.o3rMetrics !== false
|
59
60
|
&& (!process.env.CI || process.env.CI === 'false')) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"wrapper.js","sourceRoot":"","sources":["../../../src/utility/wrapper.ts"],"names":[],"mappings":";;;AACA,2DAAoF;AAEpF,2EAA8E;AAC9E,uCAA4C;AAC5C,qCAAuC;AACvC,kCAAkC;AAClC,sDAA2E;AAE3E,MAAM,oBAAoB,GAAqB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;AAE1D,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAEzC,MAAM,4BAA4B,GAAiC,CAAC,SAAS,EAAE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