@angular/cli 15.0.0 → 15.0.1
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/lib/init.js +6 -2
- package/package.json +11 -11
package/lib/init.js
CHANGED
|
@@ -56,15 +56,19 @@ let forceExit = false;
|
|
|
56
56
|
* See: https://github.com/browserslist/browserslist/blob/819c4337456996d19db6ba953014579329e9c6e1/node.js#L324
|
|
57
57
|
*/
|
|
58
58
|
process.env.BROWSERSLIST_IGNORE_OLD_DATA = '1';
|
|
59
|
+
const rawCommandName = process.argv[2];
|
|
59
60
|
/**
|
|
60
61
|
* Disable CLI version mismatch checks and forces usage of the invoked CLI
|
|
61
62
|
* instead of invoking the local installed version.
|
|
63
|
+
*
|
|
64
|
+
* When running `ng new` always favor the global version. As in some
|
|
65
|
+
* cases orphan `node_modules` would cause the non global CLI to be used.
|
|
66
|
+
* @see: https://github.com/angular/angular-cli/issues/14603
|
|
62
67
|
*/
|
|
63
|
-
if (environment_options_1.disableVersionCheck) {
|
|
68
|
+
if (environment_options_1.disableVersionCheck || rawCommandName === 'new') {
|
|
64
69
|
return (await Promise.resolve().then(() => __importStar(require('./cli')))).default;
|
|
65
70
|
}
|
|
66
71
|
let cli;
|
|
67
|
-
const rawCommandName = process.argv[2];
|
|
68
72
|
try {
|
|
69
73
|
// No error implies a projectLocalCli, which will load whatever
|
|
70
74
|
// version of ng-cli you have installed in a local package.json
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.1",
|
|
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.1500.
|
|
29
|
-
"@angular-devkit/core": "15.0.
|
|
30
|
-
"@angular-devkit/schematics": "15.0.
|
|
31
|
-
"@schematics/angular": "15.0.
|
|
28
|
+
"@angular-devkit/architect": "0.1500.1",
|
|
29
|
+
"@angular-devkit/core": "15.0.1",
|
|
30
|
+
"@angular-devkit/schematics": "15.0.1",
|
|
31
|
+
"@schematics/angular": "15.0.1",
|
|
32
32
|
"@yarnpkg/lockfile": "1.1.0",
|
|
33
33
|
"ansi-colors": "4.1.3",
|
|
34
34
|
"ini": "3.0.1",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"ng-update": {
|
|
48
48
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
49
49
|
"packageGroup": {
|
|
50
|
-
"@angular/cli": "15.0.
|
|
51
|
-
"@angular-devkit/architect": "0.1500.
|
|
52
|
-
"@angular-devkit/build-angular": "15.0.
|
|
53
|
-
"@angular-devkit/build-webpack": "0.1500.
|
|
54
|
-
"@angular-devkit/core": "15.0.
|
|
55
|
-
"@angular-devkit/schematics": "15.0.
|
|
50
|
+
"@angular/cli": "15.0.1",
|
|
51
|
+
"@angular-devkit/architect": "0.1500.1",
|
|
52
|
+
"@angular-devkit/build-angular": "15.0.1",
|
|
53
|
+
"@angular-devkit/build-webpack": "0.1500.1",
|
|
54
|
+
"@angular-devkit/core": "15.0.1",
|
|
55
|
+
"@angular-devkit/schematics": "15.0.1"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|