@angular/cli 20.0.0-rc.2 → 20.0.0-rc.4
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/bin/bootstrap.js +3 -3
- package/lib/cli/index.js +1 -1
- package/lib/config/schema.json +23 -0
- package/package.json +15 -15
- package/src/command-builder/command-module.d.ts +1 -1
- package/src/command-builder/command-runner.js +1 -1
- package/src/command-builder/utilities/json-schema.d.ts +2 -2
- package/src/typings.d.ts +6 -2
- package/src/utilities/version.js +1 -1
- package/src/typings.js +0 -8
package/bin/bootstrap.js
CHANGED
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
// Enable on-disk code caching if available (Node.js 22.8+)
|
|
22
|
-
// Skip if running inside Bazel via a RUNFILES environment variable check
|
|
23
|
-
// well with Bazel's hermeticity requirements.
|
|
24
|
-
if (!process.env['RUNFILES']) {
|
|
22
|
+
// Skip if running inside Bazel via a RUNFILES environment variable check and no explicit cache
|
|
23
|
+
// location defined. The default cache location does not work well with Bazel's hermeticity requirements.
|
|
24
|
+
if (!process.env['RUNFILES'] || process.env['NODE_COMPILE_CACHE']) {
|
|
25
25
|
try {
|
|
26
26
|
const { enableCompileCache } = require('node:module');
|
|
27
27
|
|
package/lib/cli/index.js
CHANGED
|
@@ -18,7 +18,7 @@ const environment_options_1 = require("../../src/utilities/environment-options")
|
|
|
18
18
|
const log_file_1 = require("../../src/utilities/log-file");
|
|
19
19
|
var version_1 = require("../../src/utilities/version");
|
|
20
20
|
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } });
|
|
21
|
-
const MIN_NODEJS_VERSION = [20,
|
|
21
|
+
const MIN_NODEJS_VERSION = [20, 19];
|
|
22
22
|
/* eslint-disable no-console */
|
|
23
23
|
async function default_1(options) {
|
|
24
24
|
// This node version check ensures that the requirements of the project instance of the CLI are met
|
package/lib/config/schema.json
CHANGED
|
@@ -4183,6 +4183,15 @@
|
|
|
4183
4183
|
"outFile": {
|
|
4184
4184
|
"type": "string",
|
|
4185
4185
|
"description": "Name of the file to output."
|
|
4186
|
+
},
|
|
4187
|
+
"i18nDuplicateTranslation": {
|
|
4188
|
+
"type": "string",
|
|
4189
|
+
"description": "How to handle duplicate translations.",
|
|
4190
|
+
"enum": [
|
|
4191
|
+
"error",
|
|
4192
|
+
"warning",
|
|
4193
|
+
"ignore"
|
|
4194
|
+
]
|
|
4186
4195
|
}
|
|
4187
4196
|
},
|
|
4188
4197
|
"additionalProperties": false
|
|
@@ -4225,6 +4234,15 @@
|
|
|
4225
4234
|
"outFile": {
|
|
4226
4235
|
"type": "string",
|
|
4227
4236
|
"description": "Name of the file to output."
|
|
4237
|
+
},
|
|
4238
|
+
"i18nDuplicateTranslation": {
|
|
4239
|
+
"type": "string",
|
|
4240
|
+
"description": "How to handle duplicate translations.",
|
|
4241
|
+
"enum": [
|
|
4242
|
+
"error",
|
|
4243
|
+
"warning",
|
|
4244
|
+
"ignore"
|
|
4245
|
+
]
|
|
4228
4246
|
}
|
|
4229
4247
|
},
|
|
4230
4248
|
"additionalProperties": false
|
|
@@ -4281,6 +4299,11 @@
|
|
|
4281
4299
|
"type": "boolean",
|
|
4282
4300
|
"description": "Run build when files change."
|
|
4283
4301
|
},
|
|
4302
|
+
"debug": {
|
|
4303
|
+
"type": "boolean",
|
|
4304
|
+
"description": "Initialize the test runner to support using the Node Inspector for test debugging.",
|
|
4305
|
+
"default": false
|
|
4306
|
+
},
|
|
4284
4307
|
"codeCoverage": {
|
|
4285
4308
|
"type": "boolean",
|
|
4286
4309
|
"description": "Output a code coverage report.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "20.0.0-rc.
|
|
3
|
+
"version": "20.0.0-rc.4",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/angular/angular-cli",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@angular-devkit/architect": "0.2000.0-rc.
|
|
29
|
-
"@angular-devkit/core": "20.0.0-rc.
|
|
30
|
-
"@angular-devkit/schematics": "20.0.0-rc.
|
|
28
|
+
"@angular-devkit/architect": "0.2000.0-rc.4",
|
|
29
|
+
"@angular-devkit/core": "20.0.0-rc.4",
|
|
30
|
+
"@angular-devkit/schematics": "20.0.0-rc.4",
|
|
31
31
|
"@inquirer/prompts": "7.5.1",
|
|
32
32
|
"@listr2/prompt-adapter-inquirer": "2.0.22",
|
|
33
|
-
"@schematics/angular": "20.0.0-rc.
|
|
33
|
+
"@schematics/angular": "20.0.0-rc.4",
|
|
34
34
|
"@yarnpkg/lockfile": "1.1.0",
|
|
35
35
|
"ini": "5.0.0",
|
|
36
36
|
"jsonc-parser": "3.3.1",
|
|
37
37
|
"listr2": "8.3.3",
|
|
38
38
|
"npm-package-arg": "12.0.2",
|
|
39
39
|
"npm-pick-manifest": "10.0.0",
|
|
40
|
-
"pacote": "
|
|
40
|
+
"pacote": "21.0.0",
|
|
41
41
|
"resolve": "1.22.10",
|
|
42
42
|
"semver": "7.7.2",
|
|
43
43
|
"yargs": "17.7.2"
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
"ng-update": {
|
|
46
46
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
47
47
|
"packageGroup": {
|
|
48
|
-
"@angular/cli": "20.0.0-rc.
|
|
49
|
-
"@angular/build": "20.0.0-rc.
|
|
50
|
-
"@angular/ssr": "20.0.0-rc.
|
|
51
|
-
"@angular-devkit/architect": "0.2000.0-rc.
|
|
52
|
-
"@angular-devkit/build-angular": "20.0.0-rc.
|
|
53
|
-
"@angular-devkit/build-webpack": "0.2000.0-rc.
|
|
54
|
-
"@angular-devkit/core": "20.0.0-rc.
|
|
55
|
-
"@angular-devkit/schematics": "20.0.0-rc.
|
|
48
|
+
"@angular/cli": "20.0.0-rc.4",
|
|
49
|
+
"@angular/build": "20.0.0-rc.4",
|
|
50
|
+
"@angular/ssr": "20.0.0-rc.4",
|
|
51
|
+
"@angular-devkit/architect": "0.2000.0-rc.4",
|
|
52
|
+
"@angular-devkit/build-angular": "20.0.0-rc.4",
|
|
53
|
+
"@angular-devkit/build-webpack": "0.2000.0-rc.4",
|
|
54
|
+
"@angular-devkit/core": "20.0.0-rc.4",
|
|
55
|
+
"@angular-devkit/schematics": "20.0.0-rc.4"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"packageManager": "pnpm@9.15.9",
|
|
59
59
|
"engines": {
|
|
60
|
-
"node": "^20.
|
|
60
|
+
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
61
61
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
62
62
|
"yarn": ">= 1.13.0"
|
|
63
63
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { logging } from '@angular-devkit/core';
|
|
9
|
-
import { ArgumentsCamelCase, Argv, CamelCaseKey, CommandModule as YargsCommandModule } from 'yargs';
|
|
9
|
+
import type { ArgumentsCamelCase, Argv, CamelCaseKey, CommandModule as YargsCommandModule } from 'yargs' with { 'resolution-mode': 'require' };
|
|
10
10
|
import { AnalyticsCollector } from '../analytics/analytics-collector';
|
|
11
11
|
import { EventCustomDimension, EventCustomMetric } from '../analytics/analytics-parameters';
|
|
12
12
|
import { AngularWorkspace } from '../utilities/config';
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { json } from '@angular-devkit/core';
|
|
9
|
-
import
|
|
9
|
+
import type { Argv, Options as YargsOptions } from 'yargs';
|
|
10
10
|
/**
|
|
11
11
|
* An option description.
|
|
12
12
|
*/
|
|
13
|
-
export interface Option extends
|
|
13
|
+
export interface Option extends YargsOptions {
|
|
14
14
|
/**
|
|
15
15
|
* The name of the option.
|
|
16
16
|
*/
|
package/src/typings.d.ts
CHANGED
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
+
|
|
8
9
|
declare module 'npm-pick-manifest' {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
function pickManifest(
|
|
11
|
+
metadata: import('./utilities/package-metadata').PackageMetadata,
|
|
12
|
+
selector: string,
|
|
13
|
+
): import('./utilities/package-metadata').PackageManifest;
|
|
14
|
+
export = pickManifest;
|
|
11
15
|
}
|
package/src/utilities/version.js
CHANGED