@o3r/schematics 11.0.0-prerelease.35 → 11.0.0-prerelease.36
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +5 -5
- package/src/rule-factories/ng-add/ng-add.helpers.d.ts +0 -11
- package/src/rule-factories/ng-add/ng-add.helpers.d.ts.map +1 -1
- package/src/rule-factories/ng-add/ng-add.helpers.js +1 -25
- package/src/rule-factories/ng-add/ng-add.helpers.js.map +1 -1
- package/src/utility/dependencies.d.ts +1 -2
- package/src/utility/dependencies.d.ts.map +1 -1
- package/src/utility/dependencies.js +1 -2
- package/src/utility/dependencies.js.map +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@o3r/schematics",
|
3
|
-
"version": "11.0.0-prerelease.
|
3
|
+
"version": "11.0.0-prerelease.36",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"@angular-devkit/core": "~17.3.0",
|
31
31
|
"@angular-devkit/schematics": "~17.3.0",
|
32
32
|
"@angular/cli": "~17.3.0",
|
33
|
-
"@o3r/telemetry": "^11.0.0-prerelease.
|
33
|
+
"@o3r/telemetry": "^11.0.0-prerelease.36",
|
34
34
|
"@schematics/angular": "~17.3.0",
|
35
35
|
"eslint": "^8.42.0",
|
36
36
|
"rxjs": "^7.8.1",
|
@@ -85,9 +85,9 @@
|
|
85
85
|
"@nx/eslint-plugin": "~18.3.0",
|
86
86
|
"@nx/jest": "~18.3.0",
|
87
87
|
"@nx/js": "~18.3.0",
|
88
|
-
"@o3r/build-helpers": "^11.0.0-prerelease.
|
89
|
-
"@o3r/eslint-plugin": "^11.0.0-prerelease.
|
90
|
-
"@o3r/telemetry": "^11.0.0-prerelease.
|
88
|
+
"@o3r/build-helpers": "^11.0.0-prerelease.36",
|
89
|
+
"@o3r/eslint-plugin": "^11.0.0-prerelease.36",
|
90
|
+
"@o3r/telemetry": "^11.0.0-prerelease.36",
|
91
91
|
"@schematics/angular": "~17.3.0",
|
92
92
|
"@stylistic/eslint-plugin-ts": "^1.5.4",
|
93
93
|
"@types/inquirer": "~8.2.10",
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
2
|
-
import { NodeDependencyType } from '@schematics/angular/utility/dependencies';
|
3
2
|
import type { NgAddPackageOptions } from '../../tasks/index';
|
4
3
|
/**
|
5
4
|
* Install via `ng add` a list of npm packages.
|
@@ -10,14 +9,4 @@ import type { NgAddPackageOptions } from '../../tasks/index';
|
|
10
9
|
export declare function ngAddPackages(packages: string[], options?: Omit<NgAddPackageOptions, 'version'> & {
|
11
10
|
version?: string | (string | undefined)[];
|
12
11
|
}, packageJsonPath?: string): Rule;
|
13
|
-
/**
|
14
|
-
* Look for the peer dependencies and run ng add on the package requested version
|
15
|
-
* TODO: Remove this method in v11. No longer used
|
16
|
-
* @param packages list of the name of the packages needed
|
17
|
-
* @param packageJsonPath path to package json that needs the peer to be resolved
|
18
|
-
* @param type how to install the dependency (dev, peer for a library or default for an application)
|
19
|
-
* @param options
|
20
|
-
* @param parentPackageInfo for logging purposes
|
21
|
-
*/
|
22
|
-
export declare function ngAddPeerDependencyPackages(packages: string[], packageJsonPath: string, type: NodeDependencyType | undefined, options: NgAddPackageOptions, parentPackageInfo?: string): Rule;
|
23
12
|
//# sourceMappingURL=ng-add.helpers.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ng-add.helpers.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/ng-add.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,IAAI,EAA+B,MAAM,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"ng-add.helpers.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/ng-add.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,IAAI,EAA+B,MAAM,4BAA4B,CAAC;AAO/G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;CAAE,EAAE,eAAe,SAAkB,GAAG,IAAI,CA0HzL"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.ngAddPackages = void 0;
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
5
5
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
6
6
|
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
@@ -136,28 +136,4 @@ function ngAddPackages(packages, options, packageJsonPath = '/package.json') {
|
|
136
136
|
]);
|
137
137
|
}
|
138
138
|
exports.ngAddPackages = ngAddPackages;
|
139
|
-
/**
|
140
|
-
* Look for the peer dependencies and run ng add on the package requested version
|
141
|
-
* TODO: Remove this method in v11. No longer used
|
142
|
-
* @param packages list of the name of the packages needed
|
143
|
-
* @param packageJsonPath path to package json that needs the peer to be resolved
|
144
|
-
* @param type how to install the dependency (dev, peer for a library or default for an application)
|
145
|
-
* @param options
|
146
|
-
* @param parentPackageInfo for logging purposes
|
147
|
-
*/
|
148
|
-
function ngAddPeerDependencyPackages(packages, packageJsonPath, type = dependencies_1.NodeDependencyType.Default, options, parentPackageInfo) {
|
149
|
-
if (!packages.length) {
|
150
|
-
return schematics_1.noop;
|
151
|
-
}
|
152
|
-
const dependencies = (0, index_1.getNodeDependencyList)((0, index_1.getExternalDependenciesVersionRange)(packages, packageJsonPath), type);
|
153
|
-
return ngAddPackages(dependencies.map(({ name }) => name), {
|
154
|
-
...options,
|
155
|
-
skipConfirmation: true,
|
156
|
-
version: dependencies.map(({ version }) => version),
|
157
|
-
parentPackageInfo,
|
158
|
-
dependencyType: type,
|
159
|
-
workingDirectory: options.workingDirectory
|
160
|
-
});
|
161
|
-
}
|
162
|
-
exports.ngAddPeerDependencyPackages = ngAddPeerDependencyPackages;
|
163
139
|
//# sourceMappingURL=ng-add.helpers.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ng-add.helpers.js","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/ng-add.helpers.ts"],"names":[],"mappings":";;;AAAA,2DAA+G;AAC/G,4DAA0E;
|
1
|
+
{"version":3,"file":"ng-add.helpers.js","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/ng-add.helpers.ts"],"names":[],"mappings":";;;AAAA,2DAA+G;AAC/G,4DAA0E;AAC1E,2EAA8E;AAC9E,qCAAiE;AACjE,kCAAkC;AAClC,+BAAqC;AAGrC,+CAAwD;AAExD;;;;;GAKG;AACH,SAAgB,aAAa,CAAC,QAAkB,EAAE,OAA8F,EAAE,eAAe,GAAG,eAAe;IACjL,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACrB,OAAO,iBAAI,CAAC;IACd,CAAC;IACD,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;IAClD,wHAAwH;IACxH,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,gBAAgB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC;IACnI,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAA+B,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE,CACpG,CAAC,WAAW,EAAE,OAAO,OAAO,EAAE,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK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
4
|
-
* TODO make logger parameter mandatory in v11 and remove the console fallback.
|
5
4
|
* Method to extract the provided package version range from a package.json file
|
6
5
|
* @param packageNames list of package we want to retrieve the version
|
7
6
|
* @param packageJsonPath Path to the package.json to refer to
|
8
7
|
* @param logger logger
|
9
8
|
* @returns The version range value retrieved from the provided package.json file
|
10
9
|
*/
|
11
|
-
export declare function getExternalDependenciesVersionRange<T extends string>(packageNames: T[], packageJsonPath: string, logger
|
10
|
+
export declare function getExternalDependenciesVersionRange<T extends string>(packageNames: T[], packageJsonPath: string, logger: logging.LoggerApi): Record<T, string>;
|
12
11
|
/**
|
13
12
|
* Method used to build the list of node dependencies to be installed
|
14
13
|
* @param dependenciesVersions map of dependency and its associated required version
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../../src/utility/dependencies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C
|
1
|
+
{"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../../src/utility/dependencies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C;;;;;;GAMG;AACH,wBAAgB,mCAAmC,CAAC,CAAC,SAAS,MAAM,EAAE,YAAY,EAAE,CAAC,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAc9J;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,MAAM,EAAE,oBAAoB,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,kBAAkB,GAAG,cAAc,EAAE,CAE3I"}
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNodeDependencyList = exports.getExternalDependenciesVersionRange = void 0;
|
4
4
|
const fs = require("node:fs");
|
5
5
|
/**
|
6
|
-
* TODO make logger parameter mandatory in v11 and remove the console fallback.
|
7
6
|
* Method to extract the provided package version range from a package.json file
|
8
7
|
* @param packageNames list of package we want to retrieve the version
|
9
8
|
* @param packageJsonPath Path to the package.json to refer to
|
@@ -19,7 +18,7 @@ function getExternalDependenciesVersionRange(packageNames, packageJsonPath, logg
|
|
19
18
|
packageJsonContent.dependencies?.[packageName] ||
|
20
19
|
packageJsonContent.devDependencies?.[packageName];
|
21
20
|
if (!acc[packageName]) {
|
22
|
-
|
21
|
+
logger.warn(`Unable to retrieve version for ${packageName} in ${packageJsonPath}. Version set to "latest".`);
|
23
22
|
acc[packageName] = 'latest';
|
24
23
|
}
|
25
24
|
return acc;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../src/utility/dependencies.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAK9B
|
1
|
+
{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../src/utility/dependencies.ts"],"names":[],"mappings":";;;AAAA,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,OAAO,EAAC,CAAC,CAAoE,CAAC;IAChK,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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