@o3r/schematics 11.6.0-prerelease.7 → 11.6.0-prerelease.9
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/environment.js +1 -0
- package/package.json +19 -14
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +6 -6
- package/schematics/ng-add/schema.d.ts.map +1 -1
- package/src/interfaces/angular-workspace.d.ts.map +1 -1
- package/src/interfaces/index.d.ts +1 -1
- package/src/interfaces/index.d.ts.map +1 -1
- package/src/interfaces/index.js +1 -1
- package/src/interfaces/index.js.map +1 -1
- package/src/interfaces/rule-factories.d.ts.map +1 -1
- package/src/interfaces/schematic-option.d.ts.map +1 -1
- package/src/modules/index.d.ts +1 -1
- package/src/modules/index.d.ts.map +1 -1
- package/src/modules/index.js +1 -1
- package/src/modules/index.js.map +1 -1
- package/src/modules/modules.constants.d.ts.map +1 -1
- package/src/modules/modules.constants.js.map +1 -1
- package/src/modules/modules.display.rule.d.ts.map +1 -1
- package/src/modules/modules.display.rule.js +1 -2
- package/src/modules/modules.display.rule.js.map +1 -1
- package/src/modules/modules.helpers.d.ts +1 -1
- package/src/modules/modules.helpers.d.ts.map +1 -1
- package/src/modules/modules.helpers.js +5 -6
- package/src/modules/modules.helpers.js.map +1 -1
- package/src/public_api.d.ts +1 -1
- package/src/public_api.d.ts.map +1 -1
- package/src/public_api.js +1 -1
- package/src/public_api.js.map +1 -1
- package/src/rule-factories/add-imports/index.d.ts.map +1 -1
- package/src/rule-factories/add-imports/index.js +9 -5
- package/src/rule-factories/add-imports/index.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 +13 -12
- package/src/rule-factories/check-packages-peers/index.js.map +1 -1
- package/src/rule-factories/dev-tools/devtools-registration.d.ts +0 -2
- package/src/rule-factories/dev-tools/devtools-registration.d.ts.map +1 -1
- package/src/rule-factories/dev-tools/devtools-registration.js +34 -19
- package/src/rule-factories/dev-tools/devtools-registration.js.map +1 -1
- package/src/rule-factories/eslint-fix/index.d.ts +1 -2
- package/src/rule-factories/eslint-fix/index.d.ts.map +1 -1
- package/src/rule-factories/eslint-fix/index.js +17 -18
- package/src/rule-factories/eslint-fix/index.js.map +1 -1
- package/src/rule-factories/get-test-frameworks/index.d.ts.map +1 -1
- package/src/rule-factories/get-test-frameworks/index.js +2 -2
- package/src/rule-factories/get-test-frameworks/index.js.map +1 -1
- package/src/rule-factories/index.d.ts +2 -3
- package/src/rule-factories/index.d.ts.map +1 -1
- package/src/rule-factories/index.js +2 -3
- package/src/rule-factories/index.js.map +1 -1
- package/src/rule-factories/ng-add/dependencies.d.ts +1 -1
- package/src/rule-factories/ng-add/dependencies.d.ts.map +1 -1
- package/src/rule-factories/ng-add/dependencies.js +19 -16
- package/src/rule-factories/ng-add/dependencies.js.map +1 -1
- package/src/rule-factories/ng-add/index.d.ts +1 -1
- package/src/rule-factories/ng-add/index.d.ts.map +1 -1
- package/src/rule-factories/ng-add/index.js +1 -1
- package/src/rule-factories/ng-add/index.js.map +1 -1
- package/src/rule-factories/ng-add/ng-add.helpers.d.ts.map +1 -1
- package/src/rule-factories/ng-add/ng-add.helpers.js +21 -21
- package/src/rule-factories/ng-add/ng-add.helpers.js.map +1 -1
- package/src/rule-factories/ng-add/schematics-register.d.ts.map +1 -1
- package/src/rule-factories/ng-add/schematics-register.js +36 -28
- package/src/rule-factories/ng-add/schematics-register.js.map +1 -1
- package/src/rule-factories/remove-packages/index.d.ts.map +1 -1
- package/src/rule-factories/remove-packages/index.js +9 -9
- package/src/rule-factories/remove-packages/index.js.map +1 -1
- package/src/rule-factories/update-imports/list-of-vars.js.map +1 -1
- package/src/rule-factories/update-imports/update-imports-with-scope.d.ts.map +1 -1
- package/src/rule-factories/update-imports/update-imports-with-scope.js +3 -2
- package/src/rule-factories/update-imports/update-imports-with-scope.js.map +1 -1
- package/src/rule-factories/update-imports/update-ts-imports.d.ts.map +1 -1
- package/src/rule-factories/update-imports/update-ts-imports.js +3 -3
- package/src/rule-factories/update-imports/update-ts-imports.js.map +1 -1
- package/src/rule-factories/vscode-extensions/index.d.ts.map +1 -1
- package/src/rule-factories/vscode-extensions/index.js +5 -5
- package/src/rule-factories/vscode-extensions/index.js.map +1 -1
- package/src/tasks/eslint/index.d.ts +1 -1
- package/src/tasks/eslint/index.d.ts.map +1 -1
- package/src/tasks/eslint/index.js +2 -2
- package/src/tasks/eslint/index.js.map +1 -1
- package/src/tasks/link/index.d.ts.map +1 -1
- package/src/tasks/link/index.js.map +1 -1
- package/src/tasks/ng-add/index.d.ts.map +1 -1
- package/src/tasks/package-manager/interfaces.d.ts.map +1 -1
- package/src/tasks/package-manager/npm-exec.d.ts.map +1 -1
- package/src/tasks/package-manager/npm-exec.js.map +1 -1
- package/src/tasks/package-manager/npm-install.d.ts.map +1 -1
- package/src/tasks/package-manager/npm-install.js +1 -1
- package/src/tasks/package-manager/npm-install.js.map +1 -1
- package/src/tasks/package-manager/npm-run.d.ts.map +1 -1
- package/src/tasks/package-manager/npm-run.js.map +1 -1
- package/src/utility/ast.d.ts.map +1 -1
- package/src/utility/ast.js +12 -15
- package/src/utility/ast.js.map +1 -1
- package/src/utility/builder.d.ts.map +1 -1
- package/src/utility/builder.js.map +1 -1
- package/src/utility/collection.d.ts.map +1 -1
- package/src/utility/collection.js +2 -3
- package/src/utility/collection.js.map +1 -1
- package/src/utility/component.d.ts.map +1 -1
- package/src/utility/component.js +2 -2
- package/src/utility/component.js.map +1 -1
- package/src/utility/dependencies.d.ts +1 -1
- package/src/utility/dependencies.d.ts.map +1 -1
- package/src/utility/dependencies.js +4 -5
- package/src/utility/dependencies.js.map +1 -1
- package/src/utility/environment.d.ts.map +1 -1
- package/src/utility/environment.js.map +1 -1
- package/src/utility/error.d.ts.map +1 -1
- package/src/utility/error.js.map +1 -1
- package/src/utility/file-info.d.ts +1 -1
- package/src/utility/file-info.d.ts.map +1 -1
- package/src/utility/file-info.js +1 -1
- package/src/utility/file-info.js.map +1 -1
- package/src/utility/generation.d.ts.map +1 -1
- package/src/utility/generation.js +2 -15
- package/src/utility/generation.js.map +1 -1
- package/src/utility/gitignore.d.ts.map +1 -1
- package/src/utility/gitignore.js +2 -2
- package/src/utility/gitignore.js.map +1 -1
- package/src/utility/index.d.ts +2 -2
- package/src/utility/index.d.ts.map +1 -1
- package/src/utility/index.js +2 -2
- package/src/utility/index.js.map +1 -1
- package/src/utility/loaders.d.ts +1 -1
- package/src/utility/loaders.d.ts.map +1 -1
- package/src/utility/loaders.js +6 -6
- package/src/utility/loaders.js.map +1 -1
- package/src/utility/logo.d.ts.map +1 -1
- package/src/utility/logo.js.map +1 -1
- package/src/utility/matching-peers.d.ts.map +1 -1
- package/src/utility/matching-peers.js +3 -3
- package/src/utility/matching-peers.js.map +1 -1
- package/src/utility/migration/migration.d.ts.map +1 -1
- package/src/utility/migration/migration.js +3 -3
- package/src/utility/migration/migration.js.map +1 -1
- package/src/utility/modules.d.ts +1 -1
- package/src/utility/modules.d.ts.map +1 -1
- package/src/utility/modules.js +16 -16
- package/src/utility/modules.js.map +1 -1
- package/src/utility/monorepo.d.ts +0 -1
- package/src/utility/monorepo.d.ts.map +1 -1
- package/src/utility/monorepo.js +0 -2
- package/src/utility/monorepo.js.map +1 -1
- package/src/utility/package-manager-runner.d.ts +2 -3
- package/src/utility/package-manager-runner.d.ts.map +1 -1
- package/src/utility/package-manager-runner.js +1 -4
- package/src/utility/package-manager-runner.js.map +1 -1
- package/src/utility/package-version.d.ts +0 -1
- package/src/utility/package-version.d.ts.map +1 -1
- package/src/utility/package-version.js +3 -4
- package/src/utility/package-version.js.map +1 -1
- package/src/utility/question.d.ts.map +1 -1
- package/src/utility/question.js.map +1 -1
- package/src/utility/routes.d.ts.map +1 -1
- package/src/utility/routes.js +6 -6
- package/src/utility/routes.js.map +1 -1
- package/src/utility/sub-entry.d.ts.map +1 -1
- package/src/utility/sub-entry.js.map +1 -1
- package/src/utility/template-property.helper.d.ts.map +1 -1
- package/src/utility/template-property.helper.js +2 -2
- package/src/utility/template-property.helper.js.map +1 -1
- package/src/utility/update-imports.d.ts +1 -1
- package/src/utility/update-imports.d.ts.map +1 -1
- package/src/utility/update-imports.js +10 -14
- package/src/utility/update-imports.js.map +1 -1
- package/src/utility/update-pipes.d.ts.map +1 -1
- package/src/utility/update-pipes.js +5 -5
- package/src/utility/update-pipes.js.map +1 -1
- package/src/utility/wrapper.d.ts.map +1 -1
- package/src/utility/wrapper.js +12 -11
- package/src/utility/wrapper.js.map +1 -1
package/cli/environment.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const index_1 = require("../src/utility/index");
|
4
|
+
// eslint-disable-next-line no-console -- this is the purpose of this CLI
|
4
5
|
console.info(`Environment information: ${(0, index_1.getEnvironmentInfoStringify)()}`);
|
5
6
|
//# sourceMappingURL=environment.js.map
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@o3r/schematics",
|
3
|
-
"version": "11.6.0-prerelease.
|
3
|
+
"version": "11.6.0-prerelease.9",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -30,9 +30,9 @@
|
|
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.6.0-prerelease.
|
33
|
+
"@o3r/telemetry": "^11.6.0-prerelease.9",
|
34
34
|
"@schematics/angular": "~18.2.0",
|
35
|
-
"eslint": "
|
35
|
+
"eslint": "~9.14.0",
|
36
36
|
"rxjs": "^7.8.1",
|
37
37
|
"type-fest": "^4.10.2",
|
38
38
|
"typescript": "~5.5.4"
|
@@ -69,7 +69,6 @@
|
|
69
69
|
"@angular-devkit/build-angular": "~18.2.0",
|
70
70
|
"@angular-devkit/core": "~18.2.0",
|
71
71
|
"@angular-devkit/schematics": "~18.2.0",
|
72
|
-
"@angular-eslint/eslint-plugin": "~18.3.0",
|
73
72
|
"@angular/animations": "~18.2.0",
|
74
73
|
"@angular/cli": "~18.2.0",
|
75
74
|
"@angular/common": "~18.2.0",
|
@@ -81,29 +80,34 @@
|
|
81
80
|
"@babel/core": "~7.26.0",
|
82
81
|
"@babel/preset-typescript": "~7.26.0",
|
83
82
|
"@compodoc/compodoc": "^1.1.19",
|
83
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
84
84
|
"@nx/eslint": "~19.5.0",
|
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.6.0-prerelease.
|
89
|
-
"@o3r/eslint-plugin": "^11.6.0-prerelease.
|
90
|
-
"@o3r/telemetry": "^11.6.0-prerelease.
|
88
|
+
"@o3r/build-helpers": "^11.6.0-prerelease.9",
|
89
|
+
"@o3r/eslint-plugin": "^11.6.0-prerelease.9",
|
90
|
+
"@o3r/telemetry": "^11.6.0-prerelease.9",
|
91
91
|
"@schematics/angular": "~18.2.0",
|
92
|
-
"@stylistic/eslint-plugin
|
92
|
+
"@stylistic/eslint-plugin": "~2.7.0",
|
93
93
|
"@types/inquirer": "~8.2.10",
|
94
94
|
"@types/jest": "~29.5.2",
|
95
95
|
"@types/node": "^20.0.0",
|
96
96
|
"@types/semver": "^7.3.13",
|
97
|
-
"@typescript-eslint/
|
98
|
-
"
|
99
|
-
"@typescript-eslint/utils": "^7.14.1",
|
97
|
+
"@typescript-eslint/parser": "~8.12.2",
|
98
|
+
"angular-eslint": "~18.4.0",
|
100
99
|
"cpy-cli": "^5.0.0",
|
101
|
-
"eslint": "
|
100
|
+
"eslint": "~9.14.0",
|
102
101
|
"eslint-import-resolver-node": "^0.3.9",
|
102
|
+
"eslint-import-resolver-typescript": "^3.6.3",
|
103
|
+
"eslint-plugin-import": "^2.31.0",
|
104
|
+
"eslint-plugin-import-newlines": "^1.4.0",
|
103
105
|
"eslint-plugin-jest": "~28.8.0",
|
104
|
-
"eslint-plugin-jsdoc": "~
|
106
|
+
"eslint-plugin-jsdoc": "~50.2.0",
|
105
107
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
106
|
-
"eslint-plugin-unicorn": "^
|
108
|
+
"eslint-plugin-unicorn": "^56.0.0",
|
109
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
110
|
+
"globals": "^15.9.0",
|
107
111
|
"jest": "~29.7.0",
|
108
112
|
"jest-junit": "~16.0.0",
|
109
113
|
"jsonc-eslint-parser": "~2.4.0",
|
@@ -114,6 +118,7 @@
|
|
114
118
|
"ts-node": "~10.9.2",
|
115
119
|
"type-fest": "^4.10.2",
|
116
120
|
"typescript": "~5.5.4",
|
121
|
+
"typescript-eslint": "~8.12.2",
|
117
122
|
"zone.js": "~0.14.2"
|
118
123
|
},
|
119
124
|
"engines": {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AA0ClB;;;GAGG;AACH,eAAO,MAAM,KAAK,YAAa,qBAAqB,KAAG,IAEtD,CAAC"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ngAdd = void 0;
|
4
|
-
const public_api_1 = require("../../src/public_api");
|
5
|
-
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
6
4
|
const path = require("node:path");
|
5
|
+
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
6
|
+
const schematics_1 = require("@o3r/schematics");
|
7
7
|
/**
|
8
8
|
* Add Otter schematics to an Angular Project
|
9
9
|
* @param options schematics options
|
@@ -12,7 +12,7 @@ function ngAddFn(options) {
|
|
12
12
|
const schematicsDependencies = ['@angular-devkit/architect', '@angular-devkit/schematics', '@angular-devkit/core', '@schematics/angular', 'globby'];
|
13
13
|
return (_, context) => {
|
14
14
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
15
|
-
const dependencies = Object.entries((0,
|
15
|
+
const dependencies = Object.entries((0, schematics_1.getExternalDependenciesVersionRange)(schematicsDependencies, packageJsonPath, context.logger)).reduce((acc, [dep, range]) => {
|
16
16
|
acc[dep] = {
|
17
17
|
inManifest: [{
|
18
18
|
range,
|
@@ -21,7 +21,7 @@ function ngAddFn(options) {
|
|
21
21
|
};
|
22
22
|
return acc;
|
23
23
|
}, {});
|
24
|
-
Object.entries((0,
|
24
|
+
Object.entries((0, schematics_1.getExternalDependenciesVersionRange)(schematicsDependencies, packageJsonPath, context.logger))
|
25
25
|
.forEach(([dep, range]) => {
|
26
26
|
dependencies[dep] = {
|
27
27
|
inManifest: [{
|
@@ -30,7 +30,7 @@ function ngAddFn(options) {
|
|
30
30
|
}]
|
31
31
|
};
|
32
32
|
});
|
33
|
-
return (0,
|
33
|
+
return (0, schematics_1.setupDependencies)({
|
34
34
|
projectName: options.projectName,
|
35
35
|
dependencies,
|
36
36
|
skipInstall: false
|
@@ -42,7 +42,7 @@ function ngAddFn(options) {
|
|
42
42
|
* @param options
|
43
43
|
*/
|
44
44
|
const ngAdd = (options) => () => {
|
45
|
-
return (0,
|
45
|
+
return (0, schematics_1.createSchematicWithMetricsIfInstalled)(ngAddFn)(options);
|
46
46
|
};
|
47
47
|
exports.ngAdd = ngAdd;
|
48
48
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC"}
|
@@ -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":"AAAA,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,GAAG,GAAG,CAAC;CAClB;AAED,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAE3D,qBAAqB,CAAC,EAAE;QACtB,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC/B,mBAAmB,CAAC,EAAE;QACpB,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC/B,iBAAiB,CAAC,EAAE;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC/B,sBAAsB,CAAC,EAAE;QACvB,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE;QACX,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,eAAe,GAAG;QACxB,2FAA2F;QAC3F,aAAa,CAAC,EAAE,uBAAuB,CAAC;KACzC,CAAC;CAEH;AACD,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,aAAa,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
|
package/src/interfaces/index.js
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
4
|
tslib_1.__exportStar(require("./angular-workspace"), exports);
|
5
|
-
tslib_1.__exportStar(require("./schematic-option"), exports);
|
6
5
|
tslib_1.__exportStar(require("./rule-factories"), exports);
|
6
|
+
tslib_1.__exportStar(require("./schematic-option"), exports);
|
7
7
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,2DAAiC;AACjC,6DAAmC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rule-factories.d.ts","sourceRoot":"","sources":["../../../src/interfaces/rule-factories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"rule-factories.d.ts","sourceRoot":"","sources":["../../../src/interfaces/rule-factories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAEpC,6BAA6B;AAC7B,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schematic-option.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schematic-option.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"schematic-option.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schematic-option.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,CAAC,UAAU,EAAE,MAAM,GAAG,oBAAoB,CAAC;CAC5C;AAED,MAAM,MAAM,oBAAoB,GAC5B,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,oBAAoB,EAAE,GACtB,qBAAqB,CAAC"}
|
package/src/modules/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
|
package/src/modules/index.js
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
4
|
tslib_1.__exportStar(require("./modules.constants"), exports);
|
5
|
-
tslib_1.__exportStar(require("./modules.helpers"), exports);
|
6
5
|
tslib_1.__exportStar(require("./modules.display.rule"), exports);
|
6
|
+
tslib_1.__exportStar(require("./modules.helpers"), exports);
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/src/modules/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,iEAAuC;AACvC,4DAAkC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"modules.constants.d.ts","sourceRoot":"","sources":["../../../src/modules/modules.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"modules.constants.d.ts","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AAC,KAAK,CAAe,CAAC;AAEpE,2DAA2D;AAC3D,eAAO,MAAM,6BAA6B,2BAA4B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"modules.constants.js","sourceRoot":"","sources":["../../../src/modules/modules.constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"modules.constants.js","sourceRoot":"","sources":["../../../src/modules/modules.constants.ts"],"names":[],"mappings":";;;AA2BA,8CAA8C;AACjC,QAAA,mBAAmB,GAAG,QAAQ,CAAC;AAI5C,8CAA8C;AACjC,QAAA,0BAA0B,GAA8B,eAAe,CAAC;AAIrF,kDAAkD;AACrC,QAAA,oBAAoB,GAA6B,cAAc,CAAC;AAC7E,yEAAyE;AAC5D,QAAA,iBAAiB,GAA0B,WAAW,CAAC;AAEpE,2DAA2D;AAC9C,QAAA,6BAA6B,GAAG,CAAC,OAAO,EAAE,KAAK,CAAU,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"modules.display.rule.d.ts","sourceRoot":"","sources":["../../../src/modules/modules.display.rule.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"modules.display.rule.d.ts","sourceRoot":"","sources":["../../../src/modules/modules.display.rule.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAepC,0CAA0C;AAC1C,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAAC;IAC7C;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,cAAc,EAAE,OAAO,CAAC;IACxB,oEAAoE;IACpE,uBAAuB,EAAE,OAAO,CAAC;IACjC,8DAA8D;IAC9D,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,IAAI,CA+BvF"}
|
@@ -2,8 +2,8 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.displayModuleListRule = displayModuleListRule;
|
4
4
|
const node_os_1 = require("node:os");
|
5
|
-
const modules_constants_1 = require("./modules.constants");
|
6
5
|
const index_1 = require("../utility/index");
|
6
|
+
const modules_constants_1 = require("./modules.constants");
|
7
7
|
const modules_helpers_1 = require("./modules.helpers");
|
8
8
|
/**
|
9
9
|
* Display the list of available Otter modules
|
@@ -29,7 +29,6 @@ function displayModuleListRule(options) {
|
|
29
29
|
.join(node_os_1.EOL + node_os_1.EOL);
|
30
30
|
if (message) {
|
31
31
|
context.logger.info('The following modules are now available for your application, add them according to your needs:');
|
32
|
-
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
33
32
|
context.logger.info(node_os_1.EOL + message);
|
34
33
|
}
|
35
34
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"modules.display.rule.js","sourceRoot":"","sources":["../../../src/modules/modules.display.rule.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"modules.display.rule.js","sourceRoot":"","sources":["../../../src/modules/modules.display.rule.ts"],"names":[],"mappings":";;AA4CA,sDA+BC;AA3ED,qCAEiB;AAIjB,4CAG0B;AAC1B,2DAI6B;AAC7B,uDAG2B;AAsB3B;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,OAA2C;IAC/E,MAAM,cAAc,GAAG,OAAO,EAAE,cAAc,IAAI,iDAA6B,CAAC;IAChF,MAAM,OAAO,GAAG,OAAO,EAAE,OAAO,IAAI,wCAAoB,CAAC;IAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QAC7B,MAAM,MAAM,GAA2B,EAAE,CAAC,qCAAiB,CAAC,EAAE,aAAa,EAAE,CAAC;QAE9E,MAAM,eAAe,GAAG,IAAA,0BAAkB,EAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,IAAA,sDAAoC,EAAC,OAAO,EAAE;gBAClE,cAAc;gBACd,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,uBAAuB;gBACpD,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,eAAe;aAChB,CAAC,CAAC;YACH,MAAM,OAAO,GAAG,OAAO;iBACpB,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,cAAc,IAAI,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,qCAAiB,CAAC,CAAC;iBACtF,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,yCAAuB,EAAC,GAAG,EAAE,IAAA,iCAAyB,EAAC,eAAe,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;iBACpH,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;iBACtB,IAAI,CAAC,aAAG,GAAG,aAAG,CAAC,CAAC;YACnB,IAAI,OAAO,EAAE,CAAC;gBACZ,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,iGAAiG,CAAC,CAAC;gBAEvH,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,aAAG,GAAG,OAAO,CAAC,CAAC;YACrC,CAAC;QACH,CAAC;QAAC,OAAO,CAAM,EAAE,CAAC;YAChB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,EAAE,CAAC,CAAC,CAAC;YAC7D,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;QAC5D,CAAC;QACD,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { NpmRegistryPackage, OtterModuleTag } from './modules.constants';
|
2
1
|
import type { logging } from '@angular-devkit/core';
|
3
2
|
import { type PackageManagerOptions } from '../utility/index';
|
3
|
+
import { NpmRegistryPackage, OtterModuleTag } from './modules.constants';
|
4
4
|
/**
|
5
5
|
* Determine if the given keyword is an Otter tag
|
6
6
|
* @param keyword Keyword to identify
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"modules.helpers.d.ts","sourceRoot":"","sources":["../../../src/modules/modules.helpers.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"modules.helpers.d.ts","sourceRoot":"","sources":["../../../src/modules/modules.helpers.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,OAAO,EACR,MAAM,sBAAsB,CAAC;AAS9B,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EACL,kBAAkB,EAKlB,cAAc,EACf,MAAM,qBAAqB,CAAC;AAiD7B;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,GAAG,SAAS,WAAW,GAAG,WAAW,CAAC,KAAG,OAAO,IAAI,cAAc,CAAC,CAAC,SAAS,SAAS,GAAG,EAAE,GAAG,CAAC,CAGzI,CAAC;AAEF,+CAA+C;AAC/C,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACnE;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAsBxK;AAED,gEAAgE;AAChE,MAAM,WAAW,uCAAwC,SAAQ,sBAAsB;IACrF;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAAC;CAC/C;AAED;;;;;GAKG;AACH,wBAAsB,oCAAoC,CAAC,OAAO,EAAE,MAAM,YAAuB,EAAE,OAAO,EAAE,uCAAuC,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAoBlL;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACnC,UAAU,EAAE,kBAAkB,EAC9B,MAAM,SAAQ,EACd,WAAW,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,EACxC,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,UA8B7B"}
|
@@ -4,17 +4,17 @@ exports.isOtterTag = void 0;
|
|
4
4
|
exports.getAvailableModules = getAvailableModules;
|
5
5
|
exports.getAvailableModulesWithLatestPackage = getAvailableModulesWithLatestPackage;
|
6
6
|
exports.formatModuleDescription = formatModuleDescription;
|
7
|
-
const
|
8
|
-
const
|
9
|
-
const semver_1 = require("semver");
|
7
|
+
const node_child_process_1 = require("node:child_process");
|
8
|
+
const fs = require("node:fs");
|
10
9
|
const node_https_1 = require("node:https");
|
11
10
|
const node_os_1 = require("node:os");
|
12
|
-
const fs = require("node:fs");
|
13
11
|
const path = require("node:path");
|
14
12
|
const node_util_1 = require("node:util");
|
15
|
-
const node_child_process_1 = require("node:child_process");
|
16
13
|
const chalk = require("chalk");
|
14
|
+
const semver_1 = require("semver");
|
17
15
|
const index_1 = require("../utility/index");
|
16
|
+
const package_version_1 = require("../utility/package-version");
|
17
|
+
const modules_constants_1 = require("./modules.constants");
|
18
18
|
const DEFAULT_NPM_REGISTRY = 'registry.npmjs.org';
|
19
19
|
async function promiseGetRequest(url) {
|
20
20
|
const res = await new Promise((resolve, reject) => (0, node_https_1.get)(url, resolve)
|
@@ -29,7 +29,6 @@ async function promiseGetRequest(url) {
|
|
29
29
|
/**
|
30
30
|
* Execute NPM search command if not run with other client
|
31
31
|
* @param search search text
|
32
|
-
* @param packageManager Package manager to use, determined automatically if not specified
|
33
32
|
* @param packageManagerOptions
|
34
33
|
* @param logger
|
35
34
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"modules.helpers.js","sourceRoot":"","sources":["../../../src/modules/modules.helpers.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"modules.helpers.js","sourceRoot":"","sources":["../../../src/modules/modules.helpers.ts"],"names":[],"mappings":";;;AA0HA,kDAsBC;AAiBD,oFAoBC;AASD,0DAkCC;AAhOD,2DAE4B;AAC5B,8BAA8B;AAI9B,2CAEoB;AACpB,qCAEiB;AACjB,kCAAkC;AAClC,yCAEmB;AAInB,+BAA+B;AAC/B,mCAEgB;AAKhB,4CAG0B;AAC1B,gEAEoC;AACpC,2DAO6B;AAE7B,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;QAC1B,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QAC5C,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;QACzE,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,aAAa,CAAC,MAAc,EAAE,qBAA6C,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AAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3F,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,aAAG,CAAC,CAAC;AACzB,CAAC"}
|
package/src/public_api.d.ts
CHANGED
package/src/public_api.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,
|
1
|
+
{"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
package/src/public_api.js
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
4
|
tslib_1.__exportStar(require("./interfaces/index"), exports);
|
5
|
+
tslib_1.__exportStar(require("./modules/index"), exports);
|
5
6
|
tslib_1.__exportStar(require("./rule-factories/index"), exports);
|
6
7
|
tslib_1.__exportStar(require("./tasks/index"), exports);
|
7
8
|
tslib_1.__exportStar(require("./utility/index"), exports);
|
8
|
-
tslib_1.__exportStar(require("./modules/index"), exports);
|
9
9
|
//# sourceMappingURL=public_api.js.map
|
package/src/public_api.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,iEAAuC;AACvC,wDAA8B;AAC9B,0DAAgC
|
1
|
+
{"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,0DAAgC;AAChC,iEAAuC;AACvC,wDAA8B;AAC9B,0DAAgC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/add-imports/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/add-imports/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AASpC;;;;GAIG;AACH,eAAO,MAAM,cAAc,aACf,MAAM,WACP;IACP,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,EAAE,KACF,IAoBF,CAAC"}
|
@@ -14,11 +14,15 @@ const addImportsRule = (filePath, imports) => (tree, context) => {
|
|
14
14
|
context.logger.warn(`No update applied on file because ${filePath} does not exist.`);
|
15
15
|
return;
|
16
16
|
}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
imports.forEach(({ importNames, from }) => {
|
18
|
+
importNames.forEach((importName) => {
|
19
|
+
const sourceFile = ts.createSourceFile(filePath, tree.readText(filePath), ts.ScriptTarget.ES2020, true);
|
20
|
+
const recorder = tree.beginUpdate(filePath);
|
21
|
+
const change = (0, ast_utils_1.insertImport)(sourceFile, filePath, importName, from);
|
22
|
+
(0, change_1.applyToUpdateRecorder)(recorder, [change]);
|
23
|
+
tree.commitUpdate(recorder);
|
24
|
+
});
|
25
|
+
});
|
22
26
|
return tree;
|
23
27
|
};
|
24
28
|
exports.addImportsRule = addImportsRule;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/add-imports/index.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/add-imports/index.ts"],"names":[],"mappings":";;;AAGA,qEAE+C;AAC/C,+DAE4C;AAC5C,iCAAiC;AAEjC;;;;GAIG;AACI,MAAM,cAAc,GAAG,CAC5B,QAAgB,EAChB,OAGG,EACG,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;IAC3B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,qCAAqC,QAAQ,kBAAkB,CAAC,CAAC;QACrF,OAAO;IACT,CAAC;IACD,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE;QACxC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YACjC,MAAM,UAAU,GAAG,EAAE,CAAC,gBAAgB,CACpC,QAAQ,EACR,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EACvB,EAAE,CAAC,YAAY,CAAC,MAAM,EACtB,IAAI,CACL,CAAC;YACF,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC5C,MAAM,MAAM,GAAG,IAAA,wBAAY,EAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;YACpE,IAAA,8BAAqB,EAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;YAC1C,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AA1BW,QAAA,cAAc,kBA0BzB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/check-packages-peers/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/check-packages-peers/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAChB,IAAI,EACL,MAAM,4BAA4B,CAAC;AAmGpC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,UACrC,IAAI,WAAW,gBAAgB,kEAK9C"}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.checkPackagesRule = checkPackagesRule;
|
4
|
+
const node_fs_1 = require("node:fs");
|
4
5
|
const path = require("node:path");
|
5
6
|
const semver_1 = require("semver");
|
6
|
-
const
|
7
|
-
const
|
7
|
+
const error_1 = require("../../utility/error");
|
8
|
+
const package_manager_runner_1 = require("../../utility/package-manager-runner");
|
8
9
|
/**
|
9
10
|
* Check if the first level of peer deps of a given package are installed.
|
10
11
|
* List all not installed packages or packages with version mismatch
|
@@ -16,8 +17,8 @@ function getPackagesToInstallOrUpdate(packageName) {
|
|
16
17
|
const packageJsonNamePath = require.resolve(`${packageName}${path.posix.sep}package.json`);
|
17
18
|
installedPackage = JSON.parse((0, node_fs_1.readFileSync)(packageJsonNamePath, { encoding: 'utf8' }));
|
18
19
|
}
|
19
|
-
catch
|
20
|
-
throw new
|
20
|
+
catch {
|
21
|
+
throw new error_1.O3rCliError(`The provided package is not installed: ${packageName}`);
|
21
22
|
}
|
22
23
|
const packagesToInstall = [];
|
23
24
|
const packagesWrongVersion = [];
|
@@ -37,7 +38,7 @@ function getPackagesToInstallOrUpdate(packageName) {
|
|
37
38
|
const packageJsonNamePath = require.resolve(`${pName}${path.posix.sep}package.json`);
|
38
39
|
installedPackageVersion = JSON.parse((0, node_fs_1.readFileSync)(packageJsonNamePath, { encoding: 'utf8' })).version;
|
39
40
|
}
|
40
|
-
catch
|
41
|
+
catch {
|
41
42
|
packagesToInstall.push({ packageName: pName, version: pVersion });
|
42
43
|
}
|
43
44
|
if (installedPackageVersion && !(0, semver_1.satisfies)(installedPackageVersion, pVersion)) {
|
@@ -49,29 +50,29 @@ function getPackagesToInstallOrUpdate(packageName) {
|
|
49
50
|
/**
|
50
51
|
* Log an instruction with the packages to install or update to match a package peer dependencies
|
51
52
|
* @param packageName
|
52
|
-
* @param angularJsonString
|
53
53
|
* @param logger
|
54
|
+
* @param angularJsonString
|
54
55
|
*/
|
55
56
|
function checkPackagesToInstallOrUpdate(packageName, logger, angularJsonString) {
|
56
|
-
const packageManager = (0,
|
57
|
+
const packageManager = (0, package_manager_runner_1.getPackageManager)({ workspaceConfig: angularJsonString });
|
57
58
|
const { packagesToInstall, packagesWrongVersion } = getPackagesToInstallOrUpdate(packageName);
|
58
|
-
if (packagesWrongVersion.length) {
|
59
|
+
if (packagesWrongVersion.length > 0) {
|
59
60
|
logger.warn('');
|
60
61
|
logger.warn(`The following packages have a mismatch version installed to satisfy "${packageName}" needed versions:`);
|
61
|
-
packagesWrongVersion.forEach(dep => {
|
62
|
+
packagesWrongVersion.forEach((dep) => {
|
62
63
|
logger.warn(`${dep.packageName} found version is ${dep.foundVersion}. "${packageName}" needs ${dep.version}`);
|
63
64
|
});
|
64
65
|
logger.warn('');
|
65
66
|
logger.warn('You might consider reinstalling the packages with the good versions:');
|
66
67
|
packagesWrongVersion.forEach((dep) => logger.warn(`${packageManager} run ng update ${dep.packageName}@${dep.version}`));
|
67
68
|
}
|
68
|
-
if (packagesToInstall.length) {
|
69
|
+
if (packagesToInstall.length > 0) {
|
69
70
|
logger.error('');
|
70
71
|
logger.error(`The following packages need to be installed to have "${packageName}" working. Run the commands one by one:`);
|
71
72
|
packagesToInstall.forEach((dep) => logger.error(`${packageManager} run ng add ${dep.packageName}@${dep.version}`));
|
72
|
-
throw new
|
73
|
+
throw new error_1.O3rCliError('Missing peer dependencies');
|
73
74
|
}
|
74
|
-
if (
|
75
|
+
if (packagesToInstall.length === 0 && packagesWrongVersion.length === 0) {
|
75
76
|
logger.info(`The package ${packageName} has all peer deps installed.\n`);
|
76
77
|
}
|
77
78
|
}
|
@@ -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":";;AAiHA,8CAMC;AAvHD,qCAEiB;AACjB,kCAAkC;AAQlC,mCAEgB;AAIhB,+CAE6B;AAC7B,iFAE8C;AAY9C;;;;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,CAAC;IACzF,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,mBAAW,CAAC,0CAA0C,WAAW,EAAE,CAAC,CAAC;IACjF,CAAC;IAED,MAAM,iBAAiB,GAAqB,EAAE,CAAC;IAC/C,MAAM,oBAAoB,GAAqB,EAAE,CAAC;IAElD,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,oBAAoB,IAAI,EAAE,CAAC;SACjF,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC;SAClC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;IAC/B,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,IAAI,EAAE,CAAC;SAChF,MAAM,CAAkC,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE;QAC5D,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAA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AC,CAAC;IAC3E,CAAC;AACH,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"}
|
@@ -17,8 +17,6 @@ export interface DevtoolRegisterOptions {
|
|
17
17
|
export declare const injectServiceInMain: (options: DevtoolRegisterOptions) => Rule;
|
18
18
|
/**
|
19
19
|
* Register Devtools to the application
|
20
|
-
* @param tree
|
21
|
-
* @param context
|
22
20
|
* @param options
|
23
21
|
*/
|
24
22
|
export declare const registerDevtoolsToApplication: (options: DevtoolRegisterOptions) => Rule;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"devtools-registration.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/dev-tools/devtools-registration.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"devtools-registration.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/dev-tools/devtools-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EACL,MAAM,4BAA4B,CAAC;AA8BpC,qDAAqD;AACrD,MAAM,WAAW,sBAAsB;IACrC,iCAAiC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAoCD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,YAAa,sBAAsB,KAAG,IAmErE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,YAAa,sBAAsB,KAAG,IAsB/E,CAAC"}
|