@angular/cli 14.2.9 → 14.2.10
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/package.json +11 -11
- package/src/commands/add/cli.js +6 -3
- package/src/utilities/package-metadata.js +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.10",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/angular/angular-cli",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@angular-devkit/architect": "0.1402.
|
|
29
|
-
"@angular-devkit/core": "14.2.
|
|
30
|
-
"@angular-devkit/schematics": "14.2.
|
|
31
|
-
"@schematics/angular": "14.2.
|
|
28
|
+
"@angular-devkit/architect": "0.1402.10",
|
|
29
|
+
"@angular-devkit/core": "14.2.10",
|
|
30
|
+
"@angular-devkit/schematics": "14.2.10",
|
|
31
|
+
"@schematics/angular": "14.2.10",
|
|
32
32
|
"@yarnpkg/lockfile": "1.1.0",
|
|
33
33
|
"ansi-colors": "4.1.3",
|
|
34
34
|
"debug": "4.3.4",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"ng-update": {
|
|
50
50
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
51
51
|
"packageGroup": {
|
|
52
|
-
"@angular/cli": "14.2.
|
|
53
|
-
"@angular-devkit/architect": "0.1402.
|
|
54
|
-
"@angular-devkit/build-angular": "14.2.
|
|
55
|
-
"@angular-devkit/build-webpack": "0.1402.
|
|
56
|
-
"@angular-devkit/core": "14.2.
|
|
57
|
-
"@angular-devkit/schematics": "14.2.
|
|
52
|
+
"@angular/cli": "14.2.10",
|
|
53
|
+
"@angular-devkit/architect": "0.1402.10",
|
|
54
|
+
"@angular-devkit/build-angular": "14.2.10",
|
|
55
|
+
"@angular-devkit/build-webpack": "0.1402.10",
|
|
56
|
+
"@angular-devkit/core": "14.2.10",
|
|
57
|
+
"@angular-devkit/schematics": "14.2.10"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
package/src/commands/add/cli.js
CHANGED
|
@@ -31,8 +31,10 @@ const tty_1 = require("../../utilities/tty");
|
|
|
31
31
|
* The key is a package name and the value is a SemVer range of versions to exclude.
|
|
32
32
|
*/
|
|
33
33
|
const packageVersionExclusions = {
|
|
34
|
-
// @angular/localize@9.x versions do not have peer dependencies setup
|
|
35
|
-
'@angular/localize': '
|
|
34
|
+
// @angular/localize@9.x and earlier versions as well as @angular/localize@10.0 prereleases do not have peer dependencies setup.
|
|
35
|
+
'@angular/localize': '<10.0.0',
|
|
36
|
+
// @angular/material@7.x versions have unbounded peer dependency ranges (>=7.0.0).
|
|
37
|
+
'@angular/material': '7.x',
|
|
36
38
|
};
|
|
37
39
|
class AddCommandModule extends schematics_command_module_1.SchematicsCommandModule {
|
|
38
40
|
constructor() {
|
|
@@ -149,7 +151,8 @@ class AddCommandModule extends schematics_command_module_1.SchematicsCommandModu
|
|
|
149
151
|
return false;
|
|
150
152
|
}
|
|
151
153
|
// Excluded package versions should not be considered
|
|
152
|
-
if (versionExclusions &&
|
|
154
|
+
if (versionExclusions &&
|
|
155
|
+
(0, semver_1.satisfies)(value.version, versionExclusions, { includePrerelease: true })) {
|
|
153
156
|
return false;
|
|
154
157
|
}
|
|
155
158
|
return true;
|
|
@@ -53,6 +53,7 @@ function ensureNpmrc(logger, usingYarn, verbose) {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
function readOptions(logger, yarn = false, showPotentials = false) {
|
|
56
|
+
var _a;
|
|
56
57
|
const cwd = process.cwd();
|
|
57
58
|
const baseFilename = yarn ? 'yarnrc' : 'npmrc';
|
|
58
59
|
const dotFilename = '.' + baseFilename;
|
|
@@ -108,6 +109,15 @@ function readOptions(logger, yarn = false, showPotentials = false) {
|
|
|
108
109
|
else {
|
|
109
110
|
continue;
|
|
110
111
|
}
|
|
112
|
+
if (normalizedName === 'registry' &&
|
|
113
|
+
rcOptions['registry'] &&
|
|
114
|
+
value === 'https://registry.yarnpkg.com' &&
|
|
115
|
+
((_a = process.env['npm_config_user_agent']) === null || _a === void 0 ? void 0 : _a.includes('yarn'))) {
|
|
116
|
+
// When running `ng update` using yarn (`yarn ng update`), yarn will set the `npm_config_registry` env variable to `https://registry.yarnpkg.com`
|
|
117
|
+
// even when an RC file is present with a different repository.
|
|
118
|
+
// This causes the registry specified in the RC to always be overridden with the below logic.
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
111
121
|
normalizedName = normalizedName.replace(/(?!^)_/g, '-'); // don't replace _ at the start of the key.s
|
|
112
122
|
envVariablesOptions[normalizedName] = value;
|
|
113
123
|
}
|