@o3r/schematics 11.2.0-prerelease.5 → 11.2.0-prerelease.51
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +25 -25
- package/src/interfaces/angular-workspace.d.ts.map +1 -1
- package/src/modules/modules.helpers.js +1 -1
- package/src/modules/modules.helpers.js.map +1 -1
- package/src/rule-factories/check-packages-peers/index.d.ts.map +1 -1
- package/src/rule-factories/check-packages-peers/index.js +5 -2
- package/src/rule-factories/check-packages-peers/index.js.map +1 -1
- package/src/rule-factories/ng-add/dependencies.js +1 -1
- package/src/rule-factories/ng-add/dependencies.js.map +1 -1
- package/src/utility/dependencies.js +1 -1
- package/src/utility/dependencies.js.map +1 -1
- package/src/utility/environment.js +1 -1
- package/src/utility/environment.js.map +1 -1
- package/src/utility/matching-peers.js +2 -2
- package/src/utility/matching-peers.js.map +1 -1
- package/src/utility/package-version.js +1 -1
- package/src/utility/package-version.js.map +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@o3r/schematics",
|
3
|
-
"version": "11.2.0-prerelease.
|
3
|
+
"version": "11.2.0-prerelease.51",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -26,12 +26,12 @@
|
|
26
26
|
"o3r-environment": "./cli/environment.js"
|
27
27
|
},
|
28
28
|
"peerDependencies": {
|
29
|
-
"@angular-devkit/architect": "~0.
|
30
|
-
"@angular-devkit/core": "~18.
|
31
|
-
"@angular-devkit/schematics": "~18.
|
32
|
-
"@angular/cli": "~18.
|
33
|
-
"@o3r/telemetry": "^11.2.0-prerelease.
|
34
|
-
"@schematics/angular": "~18.
|
29
|
+
"@angular-devkit/architect": "~0.1802.0",
|
30
|
+
"@angular-devkit/core": "~18.2.0",
|
31
|
+
"@angular-devkit/schematics": "~18.2.0",
|
32
|
+
"@angular/cli": "~18.2.0",
|
33
|
+
"@o3r/telemetry": "^11.2.0-prerelease.51",
|
34
|
+
"@schematics/angular": "~18.2.0",
|
35
35
|
"eslint": "^8.57.0",
|
36
36
|
"rxjs": "^7.8.1",
|
37
37
|
"type-fest": "^4.10.2",
|
@@ -66,18 +66,18 @@
|
|
66
66
|
"tslib": "^2.6.2"
|
67
67
|
},
|
68
68
|
"devDependencies": {
|
69
|
-
"@angular-devkit/build-angular": "~18.
|
70
|
-
"@angular-devkit/core": "~18.
|
71
|
-
"@angular-devkit/schematics": "~18.
|
72
|
-
"@angular-eslint/eslint-plugin": "~18.
|
73
|
-
"@angular/animations": "~18.
|
74
|
-
"@angular/cli": "~18.
|
75
|
-
"@angular/common": "~18.
|
76
|
-
"@angular/compiler": "~18.
|
77
|
-
"@angular/compiler-cli": "~18.
|
78
|
-
"@angular/core": "~18.
|
79
|
-
"@angular/platform-browser": "~18.
|
80
|
-
"@angular/platform-browser-dynamic": "~18.
|
69
|
+
"@angular-devkit/build-angular": "~18.2.0",
|
70
|
+
"@angular-devkit/core": "~18.2.0",
|
71
|
+
"@angular-devkit/schematics": "~18.2.0",
|
72
|
+
"@angular-eslint/eslint-plugin": "~18.3.0",
|
73
|
+
"@angular/animations": "~18.2.0",
|
74
|
+
"@angular/cli": "~18.2.0",
|
75
|
+
"@angular/common": "~18.2.0",
|
76
|
+
"@angular/compiler": "~18.2.0",
|
77
|
+
"@angular/compiler-cli": "~18.2.0",
|
78
|
+
"@angular/core": "~18.2.0",
|
79
|
+
"@angular/platform-browser": "~18.2.0",
|
80
|
+
"@angular/platform-browser-dynamic": "~18.2.0",
|
81
81
|
"@babel/core": "~7.25.0",
|
82
82
|
"@babel/preset-typescript": "~7.24.0",
|
83
83
|
"@compodoc/compodoc": "^1.1.19",
|
@@ -85,10 +85,10 @@
|
|
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.2.0-prerelease.
|
89
|
-
"@o3r/eslint-plugin": "^11.2.0-prerelease.
|
90
|
-
"@o3r/telemetry": "^11.2.0-prerelease.
|
91
|
-
"@schematics/angular": "~18.
|
88
|
+
"@o3r/build-helpers": "^11.2.0-prerelease.51",
|
89
|
+
"@o3r/eslint-plugin": "^11.2.0-prerelease.51",
|
90
|
+
"@o3r/telemetry": "^11.2.0-prerelease.51",
|
91
|
+
"@schematics/angular": "~18.2.0",
|
92
92
|
"@stylistic/eslint-plugin-ts": "~2.4.0",
|
93
93
|
"@types/inquirer": "~8.2.10",
|
94
94
|
"@types/jest": "~29.5.2",
|
@@ -100,8 +100,8 @@
|
|
100
100
|
"cpy-cli": "^5.0.0",
|
101
101
|
"eslint": "^8.57.0",
|
102
102
|
"eslint-import-resolver-node": "^0.3.9",
|
103
|
-
"eslint-plugin-jest": "~28.
|
104
|
-
"eslint-plugin-jsdoc": "~48.
|
103
|
+
"eslint-plugin-jest": "~28.8.0",
|
104
|
+
"eslint-plugin-jsdoc": "~48.11.0",
|
105
105
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
106
106
|
"eslint-plugin-unicorn": "^54.0.0",
|
107
107
|
"jest": "~29.7.0",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"angular-workspace.d.ts","sourceRoot":"","sources":["../../../src/interfaces/angular-workspace.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"angular-workspace.d.ts","sourceRoot":"","sources":["../../../src/interfaces/angular-workspace.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,IAAI,kBAAkB,EAC9B,MAAM,IAAI,iBAAiB,EAC3B,gBAAgB,EACjB,MAAM,0CAA0C,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,SAAS,CAAC;AAEzD,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,WAAW,aAAa;IAC5B,CAAC,CAAC,EAAE,MAAM,G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,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,QAAQ,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;KAC/B,CAAC;IACF,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC"}
|
@@ -137,7 +137,7 @@ function formatModuleDescription(npmPackage, runner = 'npx', keywordTags = {}, l
|
|
137
137
|
try {
|
138
138
|
const otterCorePackage = (0, package_version_1.findClosestPackageJson)(require.resolve(otterCorePackageName));
|
139
139
|
if (otterCorePackage) {
|
140
|
-
const { version } = JSON.parse(fs.readFileSync(otterCorePackage, { encoding: '
|
140
|
+
const { version } = JSON.parse(fs.readFileSync(otterCorePackage, { encoding: 'utf8' }));
|
141
141
|
otterVersion = version;
|
142
142
|
}
|
143
143
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"modules.helpers.js","sourceRoot":"","sources":["../../../src/modules/modules.helpers.ts"],"names":[],"mappings":";;;AA8FA,kDAsBC;AAiBD,oFAoBC;AASD,0DAkCC;AApMD,2DAA8K;AAI9K,gEAAoE;AACpE,mCAAmC;AACnC,2CAAiC;AACjC,qCAA8B;AAC9B,8BAA8B;AAC9B,kCAAkC;AAClC,yCAAsC;AACtC,2DAA8C;AAC9C,+BAA+B;AAC/B,4CAAiF;AAEjF,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAElD,KAAK,UAAU,iBAAiB,CAAuB,GAAW;IAChE,MAAM,GAAG,GAAG,MAAM,IAAI,OAAO,CAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,IAAA,gBAAG,EAAC,GAAG,EAAE,OAAO,CAAC;SAClF,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAEtC,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACxC,MAAM,IAAI,GAAa,EAAE,CAAC;QAC1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UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,UAAU,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7F,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3F,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,aAAG,CAAC,CAAC;AACzB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/check-packages-peers/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/check-packages-peers/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AA+FzE;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,UACrC,IAAI,WAAW,gBAAgB,kEAK9C"}
|
@@ -4,6 +4,7 @@ exports.checkPackagesRule = checkPackagesRule;
|
|
4
4
|
const path = require("node:path");
|
5
5
|
const semver_1 = require("semver");
|
6
6
|
const index_1 = require("../../utility/index");
|
7
|
+
const node_fs_1 = require("node:fs");
|
7
8
|
/**
|
8
9
|
* Check if the first level of peer deps of a given package are installed.
|
9
10
|
* List all not installed packages or packages with version mismatch
|
@@ -12,7 +13,8 @@ const index_1 = require("../../utility/index");
|
|
12
13
|
function getPackagesToInstallOrUpdate(packageName) {
|
13
14
|
let installedPackage;
|
14
15
|
try {
|
15
|
-
|
16
|
+
const packageJsonNamePath = require.resolve(`${packageName}${path.posix.sep}package.json`);
|
17
|
+
installedPackage = JSON.parse((0, node_fs_1.readFileSync)(packageJsonNamePath, { encoding: 'utf8' }));
|
16
18
|
}
|
17
19
|
catch (err) {
|
18
20
|
throw new index_1.O3rCliError(`The provided package is not installed: ${packageName}`);
|
@@ -32,7 +34,8 @@ function getPackagesToInstallOrUpdate(packageName) {
|
|
32
34
|
Object.entries(peerDependenciesMap).forEach(([pName, pVersion]) => {
|
33
35
|
let installedPackageVersion;
|
34
36
|
try {
|
35
|
-
|
37
|
+
const packageJsonNamePath = require.resolve(`${pName}${path.posix.sep}package.json`);
|
38
|
+
installedPackageVersion = JSON.parse((0, node_fs_1.readFileSync)(packageJsonNamePath, { encoding: 'utf8' })).version;
|
36
39
|
}
|
37
40
|
catch (err) {
|
38
41
|
packagesToInstall.push({ packageName: pName, version: pVersion });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/check-packages-peers/index.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/check-packages-peers/index.ts"],"names":[],"mappings":";;AAoGA,8CAMC;AAxGD,kCAAkC;AAClC,mCAAmC;AAEnC,+CAAqE;AACrE,qCAAuC;AAavC;;;;GAIG;AACH,SAAS,4BAA4B,CAAC,WAAmB;IACvD,IAAI,gBAA6B,CAAC;IAClC,IAAI,CAAC;QACH,MAAM,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,cAAc,CAAC,CAAC;QAC3F,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,C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AE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,kBAAkB,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IAC1H,CAAC;IAED,IAAI,iBAAiB,CAAC,MAAM,EAAE,CAAC;QAC7B,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACjB,MAAM,CAAC,KAAK,CAAC,wDAAwD,WAAW,yCAAyC,CAAC,CAAC;QAC3H,iBAAiB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,cAAc,eAAe,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QACnH,MAAM,IAAI,mBAAW,CAAC,2BAA2B,CAAC,CAAC;IACrD,CAAC;IAED,IAAI,CAAC,iBAAiB,CAAC,MAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,CAAC;QAC9D,MAAM,CAAC,IAAI,CAAC,eAAe,WAAW,iCAAiC,CAAC,CAAC;IAC3E,CAAC;AAEH,CAAC;AAED;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,WAAmB;IACnD,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC/C,8BAA8B,CAAC,WAAW,EAAE,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,CAAC;QACrF,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"}
|
@@ -29,7 +29,7 @@ const getPackageInstallConfig = (packageJsonPath, tree, projectName, devDependen
|
|
29
29
|
if (!projectName) {
|
30
30
|
return {};
|
31
31
|
}
|
32
|
-
const packageJson = JSON.parse((0, node_fs_1.readFileSync)(packageJsonPath, { encoding: '
|
32
|
+
const packageJson = JSON.parse((0, node_fs_1.readFileSync)(packageJsonPath, { encoding: 'utf8' }));
|
33
33
|
const workspaceProject = projectName ? (0, utility_1.getWorkspaceConfig)(tree)?.projects[projectName] : undefined;
|
34
34
|
return {
|
35
35
|
[packageJson.name]: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/dependencies.ts"],"names":[],"mappings":";;;AAAA,2DAA8G;AAC9G,2EAA8E;AAC9E,kCAAkC;AAElC,iCAAiC;AACjC,2CAAgI;AAChI,4DAA4F;AAC5F,qCAAuC;AA4EvC;;;GAGG;AACI,MAAM,mBAAmB,GAAG,CAAC,OAAyB,EAAgF,EAAE;IAC7I,OAAO,CAAC,CAAE,OAAe,CAAC,iBAAiB,CAAC;AAC9C,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAEF;;;;;;;;GAQG;AACI,MAAM,uBAAuB,GAAG,CAAC,eAAuB,EAAE,IAAU,EAAE,WAAoB,EAAE,iBAA2B,EAAE,eAAyB,EAAmC,EAAE;IAC5L,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,eAAe,EAAE,EAAC,QAAQ,EAAE,
|
1
|
+
{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/dependencies.ts"],"names":[],"mappings":";;;AAAA,2DAA8G;AAC9G,2EAA8E;AAC9E,kCAAkC;AAElC,iCAAiC;AACjC,2CAAgI;AAChI,4DAA4F;AAC5F,qCAAuC;AA4EvC;;;GAGG;AACI,MAAM,mBAAmB,GAAG,CAAC,OAAyB,EAAgF,EAAE;IAC7I,OAAO,CAAC,CAAE,OAAe,CAAC,iBAAiB,CAAC;AAC9C,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAEF;;;;;;;;GAQG;AACI,MAAM,uBAAuB,GAAG,C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,gBAAgB,EAAE,CAAC;YAC3C,CAAC,CAAC;iBACD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,EAAE,EAAE;gBACjD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,qCAAqC,WAAW,EAAE,CAAC,CAAC;gBACzE,OAAO,CAAC,GAAG,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,wBAAgB,CAAC,WAAW,EAAE,QAAQ,EAAE,gBAAgB,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;YACvG,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAE/D,IAAI,IAAA,2BAAmB,EAAC,OAAO,CAAC,EAAE,CAAC;gBACjC,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,CAAC;YAC1D,CAAC;iBAAM,CAAC;gBACL,OAAe,CAAC,iBAAiB,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;YACjE,CAAC;YAED,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;gBACjC,OAAO,CAAC,oBAAoB,CAAC,YAAY,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC,CAAC;QAEF,OAAO,IAAA,kBAAK,EAAC;YACX,eAAe;YACf,kBAAkB;SACnB,CAAC,CAAC;IACL,CAAC,CAAC;AAEJ,CAAC,CAAC;AApIW,QAAA,iBAAiB,qBAoI5B"}
|
@@ -11,7 +11,7 @@ const fs = require("node:fs");
|
|
11
11
|
* @returns The version range value retrieved from the provided package.json file
|
12
12
|
*/
|
13
13
|
function getExternalDependenciesVersionRange(packageNames, packageJsonPath, logger) {
|
14
|
-
const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: '
|
14
|
+
const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf8' }));
|
15
15
|
return packageNames.reduce((acc, packageName) => {
|
16
16
|
acc[packageName] =
|
17
17
|
packageJsonContent.generatorDependencies?.[packageName] ||
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../src/utility/dependencies.ts"],"names":[],"mappings":";;AAYA,kFAcC;AAQD,sDAEC;AApCD,8BAA8B;AAK9B;;;;;;GAMG;AACH,SAAgB,mCAAmC,CAAmB,YAAiB,EAAE,eAAuB,EAAE,MAAyB;IACzI,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,EAAC,QAAQ,EAAE,
|
1
|
+
{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../src/utility/dependencies.ts"],"names":[],"mappings":";;AAYA,kFAcC;AAQD,sDAEC;AApCD,8BAA8B;AAK9B;;;;;;GAMG;AACH,SAAgB,mCAAmC,CAAmB,YAAiB,EAAE,eAAuB,EAAE,MAAyB;IACzI,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAC,CAAoE,CAAC;IAC/J,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,GAA+B,EAAE,WAAW,EAAE,EAAE;QAC1E,GAAG,CAAC,WAAW,CAAC;YACd,kBAAkB,CAAC,qBAAqB,EAAE,CAAC,WAAW,CAAC;gBACvD,kBAAkB,CAAC,gBAAgB,EAAE,CAAC,WAAW,CAAC;gBAClD,kBAAkB,CAAC,YAAY,EAAE,CAAC,WAAW,CAAC;gBAC9C,kBAAkB,CAAC,eAAe,EAAE,CAAC,WAAW,CAAC,CAAC;QACpD,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YACtB,MAAM,CAAC,IAAI,CAAC,kCAAkC,WAAW,OAAO,eAAe,4BAA4B,CAAC,CAAC;YAC7G,GAAG,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC;QAC9B,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAsB,CAAC;AAC9B,CAAC;AAED;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAmB,oBAAuC,EAAE,IAAwB;IACvH,OAAO,MAAM,CAAC,OAAO,CAAS,oBAAoB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;AACzH,CAAC"}
|
@@ -26,7 +26,7 @@ const getEnvironmentInfo = () => {
|
|
26
26
|
}
|
27
27
|
catch { }
|
28
28
|
const otterInfo = {
|
29
|
-
version: otterCorePackageJsonPath ? JSON.parse(fs.readFileSync(otterCorePackageJsonPath, { encoding: '
|
29
|
+
version: otterCorePackageJsonPath ? JSON.parse(fs.readFileSync(otterCorePackageJsonPath, { encoding: 'utf8' })).version : undefined
|
30
30
|
};
|
31
31
|
return { os: osInfo, node: nodeInfo, packageManager: packageManagerInfo, otter: otterInfo };
|
32
32
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/utility/environment.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAC9B,8BAA8B;AAC9B,iCAAiC;AACjC,qEAAiE;AAEjE;;;GAGG;AACI,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAClD,MAAM,MAAM,GAAG;QACb,YAAY,EAAE,EAAE,CAAC,IAAI,EAAE;QACvB,QAAQ,EAAE,EAAE,CAAC,QAAQ,EAAE;QACvB,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE;KACtB,CAAC;IACF,MAAM,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IAAC,MAAM,CAAC,CAAA,CAAC;IACV,MAAM,SAAS,GAAG;QAChB,OAAO,EAAE,wBAAwB,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,wBAAwB,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,OAAiB,CAAC,CAAC,CAAC,SAAS;KAC9I,CAAC;IACF,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,kBAAkB,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;AAC9F,CAAC,CAAC;AAnBW,QAAA,kBAAkB,sBAmB7B;AAEF;;;GAGG;AACI,MAAM,2BAA2B,GAAG,GAAG,EAAE;IAC9C,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,kBAAkB,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAA,0BAAkB,GAAE,CAAC;IAClH,OAAO;6BACoB,MAAM,CAAC,YAAY;yBACvB,MAAM,CAAC,QAAQ;wBAChB,MAAM,CAAC,OAAO;kBACpB,QAAQ,CAAC,OAAO,IAAI,WAAW;0BACvB,kBAAkB,CAAC,IAAI;6BACpB,kBAAkB,CAAC,OAAO,IAAI,WAAW;mBACnD,SAAS,CAAC,OAAO,IAAI,WAAW;CAClD,CAAC;AACF,CAAC,CAAC;AAXW,QAAA,2BAA2B,+BAWtC"}
|
@@ -10,7 +10,7 @@ const fs = require("node:fs");
|
|
10
10
|
* @param pattern
|
11
11
|
*/
|
12
12
|
function getPeerDepWithPattern(packageJsonPath, pattern = /^@(otter|o3r|ama-sdk)/) {
|
13
|
-
const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: '
|
13
|
+
const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf8' }));
|
14
14
|
const packageName = packageJsonContent.name;
|
15
15
|
const packageVersion = packageJsonContent.version;
|
16
16
|
const optionalPackages = Object.entries(packageJsonContent.peerDependenciesMeta || {})
|
@@ -50,7 +50,7 @@ function getO3rPeerDeps(packageJsonPath, filterBasics = true, packagePattern = /
|
|
50
50
|
* @param packagePattern Pattern of the package name to look in the packages generator dependencies.
|
51
51
|
*/
|
52
52
|
function getO3rGeneratorDeps(packageJsonPath, packagePattern = /^@(?:o3r|ama-sdk)/) {
|
53
|
-
const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: '
|
53
|
+
const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf8' }));
|
54
54
|
const packageName = packageJsonContent.name;
|
55
55
|
const packageVersion = packageJsonContent.version;
|
56
56
|
const optionalPackages = Object.entries(packageJsonContent.generatorDependencies || {})
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"matching-peers.js","sourceRoot":"","sources":["../../../src/utility/matching-peers.ts"],"names":[],"mappings":";;AAQA,sDAeC;AAgBD,wCAUC;AAOD,kDAaC;AArED,8BAA8B;AAG9B;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,eAAuB,EAAE,UAA6B,uBAAuB;IACjH,MAAM,kBAAkB,GAAgB,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,
|
1
|
+
{"version":3,"file":"matching-peers.js","sourceRoot":"","sources":["../../../src/utility/matching-peers.ts"],"names":[],"mappings":";;AAQA,sDAeC;AAgBD,wCAUC;AAOD,kDAaC;AArED,8BAA8B;AAG9B;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,eAAuB,EAAE,UAA6B,uBAAuB;IACjH,MAAM,kBAAkB,GAAgB,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAC3G,MAAM,WAAW,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAC5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packageJsonPath
|
11
11
|
*/
|
12
12
|
function getPackageVersion(packageJsonPath) {
|
13
|
-
const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: '
|
13
|
+
const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf8' }));
|
14
14
|
return packageJsonContent.version;
|
15
15
|
}
|
16
16
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"package-version.js","sourceRoot":"","sources":["../../../src/utility/package-version.ts"],"names":[],"mappings":";;;AAUA,8CAGC;AAZD,8BAA8B;AAC9B,qCAAqC;AACrC,yCAAiD;AAGjD;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,eAAuB;IACvD,MAAM,kBAAkB,GAAgB,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,
|
1
|
+
{"version":3,"file":"package-version.js","sourceRoot":"","sources":["../../../src/utility/package-version.ts"],"names":[],"mappings":";;;AAUA,8CAGC;AAZD,8BAA8B;AAC9B,qCAAqC;AACrC,yCAAiD;AAGjD;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,eAAuB;IACvD,MAAM,kBAAkB,GAAgB,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAC3G,OAAO,kBAAkB,CAAC,OAAO,CAAC;AACpC,CAAC;AAED;;;;;;GAMG;AACI,MAAM,sBAAsB,GAAG,CAAC,WAAmB,EAAE,IAAW,EAAsB,EAAE;IAC7F,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAK,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAO,CAAC,CAAC,WAAW,CAAC,CAAC;IAC1D,IAAI,GAAG,KAAK,WAAW,IAAI,WAAW,KAAK,GAAG,EAAE,CAAC;QAC/C,OAAO,SAAS,CAAC;IACnB,CAAC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