@angular/cli 17.3.2 → 18.0.0-next.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/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] < 13)) {
59
- // Error and exit if less than 18.13
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.13.\n\n' +
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
 
@@ -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",
@@ -2299,6 +2293,7 @@
2299
2293
  },
2300
2294
  "output": {
2301
2295
  "type": "string",
2296
+ "default": "",
2302
2297
  "description": "Absolute path within the output."
2303
2298
  }
2304
2299
  },
@@ -2882,6 +2877,7 @@
2882
2877
  },
2883
2878
  "output": {
2884
2879
  "type": "string",
2880
+ "default": "",
2885
2881
  "description": "Absolute path within the output."
2886
2882
  }
2887
2883
  },
@@ -3460,6 +3456,7 @@
3460
3456
  },
3461
3457
  "output": {
3462
3458
  "type": "string",
3459
+ "default": "",
3463
3460
  "description": "Absolute path within the output."
3464
3461
  }
3465
3462
  },
@@ -4018,6 +4015,7 @@
4018
4015
  },
4019
4016
  "output": {
4020
4017
  "type": "string",
4018
+ "default": "",
4021
4019
  "description": "Absolute path within the output."
4022
4020
  },
4023
4021
  "ignore": {
@@ -4348,6 +4346,7 @@
4348
4346
  },
4349
4347
  "output": {
4350
4348
  "type": "string",
4349
+ "default": "",
4351
4350
  "description": "Absolute path within the output."
4352
4351
  },
4353
4352
  "ignore": {
@@ -4803,6 +4802,7 @@
4803
4802
  },
4804
4803
  "output": {
4805
4804
  "type": "string",
4805
+ "default": "",
4806
4806
  "description": "Absolute path within the output."
4807
4807
  }
4808
4808
  },
@@ -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": "17.3.2",
3
+ "version": "18.0.0-next.1",
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.1703.2",
29
- "@angular-devkit/core": "17.3.2",
30
- "@angular-devkit/schematics": "17.3.2",
31
- "@schematics/angular": "17.3.2",
28
+ "@angular-devkit/architect": "0.1800.0-next.1",
29
+ "@angular-devkit/core": "18.0.0-next.1",
30
+ "@angular-devkit/schematics": "18.0.0-next.1",
31
+ "@schematics/angular": "18.0.0-next.1",
32
32
  "@yarnpkg/lockfile": "1.1.0",
33
33
  "ansi-colors": "4.1.3",
34
34
  "ini": "4.1.2",
35
- "inquirer": "9.2.15",
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": "17.3.2",
51
- "@angular/ssr": "17.3.2",
52
- "@angular-devkit/architect": "0.1703.2",
53
- "@angular-devkit/build-angular": "17.3.2",
54
- "@angular-devkit/build-webpack": "0.1703.2",
55
- "@angular-devkit/core": "17.3.2",
56
- "@angular-devkit/schematics": "17.3.2"
50
+ "@angular/cli": "18.0.0-next.1",
51
+ "@angular/ssr": "18.0.0-next.1",
52
+ "@angular-devkit/architect": "0.1800.0-next.1",
53
+ "@angular-devkit/build-angular": "18.0.0-next.1",
54
+ "@angular-devkit/build-webpack": "0.1800.0-next.1",
55
+ "@angular-devkit/core": "18.0.0-next.1",
56
+ "@angular-devkit/schematics": "18.0.0-next.1"
57
57
  }
58
58
  },
59
59
  "engines": {
60
- "node": "^18.13.0 || >=20.9.0",
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(core_1.tags.oneLine `
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(core_1.tags.oneLine `
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':
@@ -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(core_1.tags.oneLine `
295
- The package that you are trying to add does not support schematics. You can try using
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(core_1.tags.stripIndents `Incompatible peer dependencies found.
189
- Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
190
- You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.`);
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
@@ -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('17.3.2');
28
+ // export const VERSION = new Version('18.0.0-next.1');
29
29
  exports.VERSION = new Version(JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, '../../package.json'), 'utf-8')).version);