@angular/cli 17.3.0 → 18.0.0-next.0
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/ng.js +3 -3
- package/lib/config/schema.json +0 -6
- package/lib/config/workspace-schema.d.ts +0 -4
- package/package.json +14 -14
- package/src/analytics/analytics-parameters.d.ts +1 -0
- package/src/command-builder/utilities/schematic-workflow.js +2 -7
- package/src/commands/add/cli.js +2 -5
- package/src/commands/command-config.js +1 -1
- package/src/commands/update/schematic/index.js +3 -3
- package/src/utilities/load-esm.d.ts +1 -0
- package/src/utilities/version.js +1 -1
package/bin/ng.js
CHANGED
|
@@ -55,13 +55,13 @@ if (version[0] % 2 === 1) {
|
|
|
55
55
|
);
|
|
56
56
|
|
|
57
57
|
require('./bootstrap');
|
|
58
|
-
} else if (version[0] < 18 || (version[0] === 18 && version[1] <
|
|
59
|
-
// Error and exit if less than 18.
|
|
58
|
+
} else if (version[0] < 18 || (version[0] === 18 && version[1] < 19)) {
|
|
59
|
+
// Error and exit if less than 18.19
|
|
60
60
|
console.error(
|
|
61
61
|
'Node.js version ' +
|
|
62
62
|
process.version +
|
|
63
63
|
' detected.\n' +
|
|
64
|
-
'The Angular CLI requires a minimum Node.js version of v18.
|
|
64
|
+
'The Angular CLI requires a minimum Node.js version of v18.19.\n\n' +
|
|
65
65
|
'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n',
|
|
66
66
|
);
|
|
67
67
|
|
package/lib/config/schema.json
CHANGED
|
@@ -1458,12 +1458,6 @@
|
|
|
1458
1458
|
"type": "boolean",
|
|
1459
1459
|
"default": false
|
|
1460
1460
|
},
|
|
1461
|
-
"linkCli": {
|
|
1462
|
-
"description": "Link the CLI to the global version (internal development only).",
|
|
1463
|
-
"type": "boolean",
|
|
1464
|
-
"default": false,
|
|
1465
|
-
"visible": false
|
|
1466
|
-
},
|
|
1467
1461
|
"skipGit": {
|
|
1468
1462
|
"description": "Do not initialize a git repository.",
|
|
1469
1463
|
"type": "boolean",
|
|
@@ -551,10 +551,6 @@ export interface AngularNgNewOptionsSchema {
|
|
|
551
551
|
* is created and referenced in the component TypeScript file.
|
|
552
552
|
*/
|
|
553
553
|
inlineTemplate?: boolean;
|
|
554
|
-
/**
|
|
555
|
-
* Link the CLI to the global version (internal development only).
|
|
556
|
-
*/
|
|
557
|
-
linkCli?: boolean;
|
|
558
554
|
/**
|
|
559
555
|
* Create a workspace without any testing frameworks. (Use for learning purposes only.)
|
|
560
556
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0-next.0",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/angular/angular-cli",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@angular-devkit/architect": "0.
|
|
29
|
-
"@angular-devkit/core": "
|
|
30
|
-
"@angular-devkit/schematics": "
|
|
31
|
-
"@schematics/angular": "
|
|
28
|
+
"@angular-devkit/architect": "0.1800.0-next.0",
|
|
29
|
+
"@angular-devkit/core": "18.0.0-next.0",
|
|
30
|
+
"@angular-devkit/schematics": "18.0.0-next.0",
|
|
31
|
+
"@schematics/angular": "18.0.0-next.0",
|
|
32
32
|
"@yarnpkg/lockfile": "1.1.0",
|
|
33
33
|
"ansi-colors": "4.1.3",
|
|
34
34
|
"ini": "4.1.2",
|
|
35
|
-
"inquirer": "9.2.
|
|
35
|
+
"inquirer": "9.2.16",
|
|
36
36
|
"jsonc-parser": "3.2.1",
|
|
37
37
|
"npm-package-arg": "11.0.1",
|
|
38
38
|
"npm-pick-manifest": "9.0.0",
|
|
@@ -47,17 +47,17 @@
|
|
|
47
47
|
"ng-update": {
|
|
48
48
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
49
49
|
"packageGroup": {
|
|
50
|
-
"@angular/cli": "
|
|
51
|
-
"@angular/ssr": "
|
|
52
|
-
"@angular-devkit/architect": "0.
|
|
53
|
-
"@angular-devkit/build-angular": "
|
|
54
|
-
"@angular-devkit/build-webpack": "0.
|
|
55
|
-
"@angular-devkit/core": "
|
|
56
|
-
"@angular-devkit/schematics": "
|
|
50
|
+
"@angular/cli": "18.0.0-next.0",
|
|
51
|
+
"@angular/ssr": "18.0.0-next.0",
|
|
52
|
+
"@angular-devkit/architect": "0.1800.0-next.0",
|
|
53
|
+
"@angular-devkit/build-angular": "18.0.0-next.0",
|
|
54
|
+
"@angular-devkit/build-webpack": "0.1800.0-next.0",
|
|
55
|
+
"@angular-devkit/core": "18.0.0-next.0",
|
|
56
|
+
"@angular-devkit/schematics": "18.0.0-next.0"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
|
-
"node": "^18.
|
|
60
|
+
"node": "^18.19.1 || >=20.11.1",
|
|
61
61
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
62
62
|
"yarn": ">= 1.13.0"
|
|
63
63
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
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.io/license
|
|
7
7
|
*/
|
|
8
|
+
/** Any changes in this file needs to be done in the mts version. */
|
|
8
9
|
export type PrimitiveTypes = string | number | boolean;
|
|
9
10
|
/**
|
|
10
11
|
* GA built-in request parameters
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.subscribeToWorkflow = void 0;
|
|
11
|
-
const core_1 = require("@angular-devkit/core");
|
|
12
11
|
const color_1 = require("../../utilities/color");
|
|
13
12
|
function subscribeToWorkflow(workflow, logger) {
|
|
14
13
|
const files = new Set();
|
|
@@ -24,15 +23,11 @@ function subscribeToWorkflow(workflow, logger) {
|
|
|
24
23
|
logger.error(`ERROR! ${eventPath} ${desc}.`);
|
|
25
24
|
break;
|
|
26
25
|
case 'update':
|
|
27
|
-
logs.push(
|
|
28
|
-
${color_1.colors.cyan('UPDATE')} ${eventPath} (${event.content.length} bytes)
|
|
29
|
-
`);
|
|
26
|
+
logs.push(`${color_1.colors.cyan('UPDATE')} ${eventPath} (${event.content.length} bytes)`);
|
|
30
27
|
files.add(eventPath);
|
|
31
28
|
break;
|
|
32
29
|
case 'create':
|
|
33
|
-
logs.push(
|
|
34
|
-
${color_1.colors.green('CREATE')} ${eventPath} (${event.content.length} bytes)
|
|
35
|
-
`);
|
|
30
|
+
logs.push(`${color_1.colors.green('CREATE')} ${eventPath} (${event.content.length} bytes)`);
|
|
36
31
|
files.add(eventPath);
|
|
37
32
|
break;
|
|
38
33
|
case 'delete':
|
package/src/commands/add/cli.js
CHANGED
|
@@ -10,7 +10,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
const core_1 = require("@angular-devkit/core");
|
|
14
13
|
const tools_1 = require("@angular-devkit/schematics/tools");
|
|
15
14
|
const module_1 = require("module");
|
|
16
15
|
const npm_package_arg_1 = __importDefault(require("npm-package-arg"));
|
|
@@ -291,10 +290,8 @@ class AddCommandModule extends schematics_command_module_1.SchematicsCommandModu
|
|
|
291
290
|
}
|
|
292
291
|
catch (e) {
|
|
293
292
|
if (e instanceof tools_1.NodePackageDoesNotSupportSchematics) {
|
|
294
|
-
this.context.logger.error(
|
|
295
|
-
|
|
296
|
-
a different version of the package or contact the package author to add ng-add support.
|
|
297
|
-
`);
|
|
293
|
+
this.context.logger.error('The package that you are trying to add does not support schematics.' +
|
|
294
|
+
'You can try using a different version of the package or contact the package author to add ng-add support.');
|
|
298
295
|
return 1;
|
|
299
296
|
}
|
|
300
297
|
throw e;
|
|
@@ -84,7 +84,7 @@ exports.RootCommands = {
|
|
|
84
84
|
},
|
|
85
85
|
'serve': {
|
|
86
86
|
factory: () => Promise.resolve().then(() => __importStar(require('./serve/cli'))),
|
|
87
|
-
aliases: ['s'],
|
|
87
|
+
aliases: ['dev', 's'],
|
|
88
88
|
},
|
|
89
89
|
'test': {
|
|
90
90
|
factory: () => Promise.resolve().then(() => __importStar(require('./test/cli'))),
|
|
@@ -185,9 +185,9 @@ function _validateUpdatePackages(infoMap, force, next, logger) {
|
|
|
185
185
|
peerErrors;
|
|
186
186
|
});
|
|
187
187
|
if (!force && peerErrors) {
|
|
188
|
-
throw new schematics_1.SchematicsException(
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
throw new schematics_1.SchematicsException('Incompatible peer dependencies found.\n' +
|
|
189
|
+
'Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.\n' +
|
|
190
|
+
`You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.`);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
function _performUpdate(tree, context, infoMap, logger, migrateOnly) {
|
|
@@ -5,6 +5,7 @@
|
|
|
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.io/license
|
|
7
7
|
*/
|
|
8
|
+
/// <reference types="node" />
|
|
8
9
|
/**
|
|
9
10
|
* This uses a dynamic import to load a module which may be ESM.
|
|
10
11
|
* CommonJS code can load ESM code via a dynamic import. Unfortunately, TypeScript
|
package/src/utilities/version.js
CHANGED
|
@@ -25,5 +25,5 @@ class Version {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
// TODO(bazel): Convert this to use build-time version stamping after flipping the build script to use bazel
|
|
28
|
-
// export const VERSION = new Version('
|
|
28
|
+
// export const VERSION = new Version('18.0.0-next.0');
|
|
29
29
|
exports.VERSION = new Version(JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, '../../package.json'), 'utf-8')).version);
|