@angular/cli 21.2.0 → 22.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.
Files changed (38) hide show
  1. package/bin/ng.js +8 -5
  2. package/lib/cli/index.js +3 -5
  3. package/lib/cli/index.js.map +1 -1
  4. package/lib/code-examples.db +0 -0
  5. package/lib/config/schema.json +0 -387
  6. package/package.json +23 -23
  7. package/src/commands/add/cli.js +1 -1
  8. package/src/commands/add/cli.js.map +1 -1
  9. package/src/commands/mcp/tools/build.js +1 -1
  10. package/src/commands/mcp/tools/build.js.map +1 -1
  11. package/src/commands/mcp/tools/e2e.js +1 -1
  12. package/src/commands/mcp/tools/e2e.js.map +1 -1
  13. package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js +1 -1
  14. package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js.map +1 -1
  15. package/src/commands/mcp/tools/test.js +1 -1
  16. package/src/commands/mcp/tools/test.js.map +1 -1
  17. package/src/commands/mcp/workspace-utils.js +2 -2
  18. package/src/commands/mcp/workspace-utils.js.map +1 -1
  19. package/src/commands/update/cli.js +2 -3
  20. package/src/commands/update/cli.js.map +1 -1
  21. package/src/commands/update/schematic/index.js +9 -2
  22. package/src/commands/update/schematic/index.js.map +1 -1
  23. package/src/commands/version/version-info.js +2 -8
  24. package/src/commands/version/version-info.js.map +1 -1
  25. package/src/package-managers/host.js +3 -0
  26. package/src/package-managers/host.js.map +1 -1
  27. package/src/utilities/completion.js +1 -1
  28. package/src/utilities/completion.js.map +1 -1
  29. package/src/utilities/config.js +1 -2
  30. package/src/utilities/config.js.map +1 -1
  31. package/src/utilities/node-version.d.ts +21 -0
  32. package/src/utilities/node-version.js +65 -0
  33. package/src/utilities/node-version.js.map +1 -0
  34. package/src/utilities/prettier.js +1 -1
  35. package/src/utilities/prettier.js.map +1 -1
  36. package/src/utilities/prompt.js +1 -1
  37. package/src/utilities/prompt.js.map +1 -1
  38. package/src/utilities/version.js +1 -1
package/bin/ng.js CHANGED
@@ -12,6 +12,7 @@
12
12
  'use strict';
13
13
 
14
14
  const path = require('path');
15
+ const nodeUtils = require('../src/utilities/node-version');
15
16
 
16
17
  // Error if the external CLI appears to be used inside a google3 context.
17
18
  if (process.cwd().split(path.sep).includes('google3')) {
@@ -42,10 +43,10 @@ if (rawCommandName === '--get-yargs-completions' || rawCommandName === 'completi
42
43
  // This node version check ensures that extremely old versions of node are not used.
43
44
  // These may not support ES2015 features such as const/let/async/await/etc.
44
45
  // These would then crash with a hard to diagnose error message.
45
- const [major, minor] = process.versions.node.split('.', 2).map((part) => Number(part));
46
+ const [major] = process.versions.node.split('.', 1).map((part) => Number(part));
46
47
 
47
48
  if (major % 2 === 1) {
48
- // Allow new odd numbered releases with a warning (currently v17+)
49
+ // Allow new odd numbered releases with a warning.
49
50
  console.warn(
50
51
  'Node.js version ' +
51
52
  process.version +
@@ -55,13 +56,15 @@ if (major % 2 === 1) {
55
56
  );
56
57
 
57
58
  require('./bootstrap');
58
- } else if (major < 20 || (major === 20 && minor < 19) || (major === 22 && minor < 12)) {
59
- // Error and exit if less than 20.19 or 22.12
59
+ } else if (!nodeUtils.isNodeVersionSupported()) {
60
+ // Error and exit if less than 22.22 or 24.13.1
60
61
  console.error(
61
62
  'Node.js version ' +
62
63
  process.version +
63
64
  ' detected.\n' +
64
- 'The Angular CLI requires a minimum Node.js version of v20.19 or v22.12.\n\n' +
65
+ 'The Angular CLI requires a minimum Node.js version of ' +
66
+ nodeUtils.supportedNodeVersions.map((v) => 'v' + v).join(' or ') +
67
+ '.\n\n' +
65
68
  'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n',
66
69
  );
67
70
 
package/lib/cli/index.js CHANGED
@@ -16,17 +16,15 @@ const command_runner_1 = require("../../src/command-builder/command-runner");
16
16
  const color_1 = require("../../src/utilities/color");
17
17
  const environment_options_1 = require("../../src/utilities/environment-options");
18
18
  const log_file_1 = require("../../src/utilities/log-file");
19
+ const node_version_1 = require("../../src/utilities/node-version");
19
20
  var version_1 = require("../../src/utilities/version");
20
21
  Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } });
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
25
- const [major, minor] = process.versions.node.split('.').map((part) => Number(part));
26
- if (major < MIN_NODEJS_VERSION[0] ||
27
- (major === MIN_NODEJS_VERSION[0] && minor < MIN_NODEJS_VERSION[1])) {
25
+ if (!(0, node_version_1.isNodeVersionMinSupported)()) {
28
26
  process.stderr.write(`Node.js version ${process.version} detected.\n` +
29
- `The Angular CLI requires a minimum of v${MIN_NODEJS_VERSION[0]}.${MIN_NODEJS_VERSION[1]}.\n\n` +
27
+ `The Angular CLI requires a minimum of v${node_version_1.supportedNodeVersions[0]}.\n\n` +
30
28
  'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n');
31
29
  return 3;
32
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAeH,4BA+FC;AA5GD,+CAA+C;AAC/C,yCAA6D;AAC7D,6EAA8E;AAC9E,6EAAsE;AACtE,qDAAiE;AACjE,iFAAkE;AAClE,2DAAmE;AAEnE,uDAAsD;AAA7C,kGAAA,OAAO,OAAA;AAEhB,MAAM,kBAAkB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAU,CAAC;AAE7C,+BAA+B;AAChB,KAAK,oBAAW,OAA8B;IAC3D,mGAAmG;IACnG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IACpF,IACE,KAAK,GAAG,kBA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wBAAwB,CAC1C,CAAC;YACJ,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,CAAC,KAAK,CACV,oCAAoC,GAAG,CAAC,OAAO,IAAI;oBACjD,uCAAuC,CAAC,EAAE,CAC7C,CAAC;gBACF,IAAI,GAAG,CAAC,KAAK,EAAE,CAAC;oBACd,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;gBAC1B,CAAC;YACH,CAAC;YAED,OAAO,GAAG,CAAC;QACb,CAAC;aAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;YACnC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACpB,CAAC;aAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;YACnC,eAAe;QACjB,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,KAAK,CAAC,iCAAiC,GAAG,EAAE,CAAC,CAAC;QACvD,CAAC;QAED,OAAO,CAAC,CAAC;IACX,CAAC;YAAS,CAAC;QACT,MAAM,CAAC,QAAQ,EAAE,CAAC;QAClB,MAAM,cAAc,CAAC;IACvB,CAAC;AACH,CAAC"}
Binary file
@@ -478,8 +478,6 @@
478
478
  "@angular-devkit/build-angular:karma",
479
479
  "@angular-devkit/build-angular:ng-packagr",
480
480
  "@angular-devkit/build-angular:prerender",
481
- "@angular-devkit/build-angular:jest",
482
- "@angular-devkit/build-angular:web-test-runner",
483
481
  "@angular-devkit/build-angular:server",
484
482
  "@angular-devkit/build-angular:ssr-dev-server"
485
483
  ]
@@ -769,50 +767,6 @@
769
767
  }
770
768
  }
771
769
  },
772
- {
773
- "type": "object",
774
- "additionalProperties": false,
775
- "properties": {
776
- "builder": {
777
- "const": "@angular-devkit/build-angular:jest"
778
- },
779
- "defaultConfiguration": {
780
- "type": "string",
781
- "description": "A default named configuration to use when a target configuration is not provided."
782
- },
783
- "options": {
784
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersJestSchema"
785
- },
786
- "configurations": {
787
- "type": "object",
788
- "additionalProperties": {
789
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersJestSchema"
790
- }
791
- }
792
- }
793
- },
794
- {
795
- "type": "object",
796
- "additionalProperties": false,
797
- "properties": {
798
- "builder": {
799
- "const": "@angular-devkit/build-angular:web-test-runner"
800
- },
801
- "defaultConfiguration": {
802
- "type": "string",
803
- "description": "A default named configuration to use when a target configuration is not provided."
804
- },
805
- "options": {
806
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersWebTestRunnerSchema"
807
- },
808
- "configurations": {
809
- "type": "object",
810
- "additionalProperties": {
811
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersWebTestRunnerSchema"
812
- }
813
- }
814
- }
815
- },
816
770
  {
817
771
  "type": "object",
818
772
  "additionalProperties": false,
@@ -5330,347 +5284,6 @@
5330
5284
  }
5331
5285
  }
5332
5286
  },
5333
- "AngularDevkitBuildAngularBuildersJestSchema": {
5334
- "title": "Jest browser schema for Build Facade.",
5335
- "description": "Jest target options",
5336
- "type": "object",
5337
- "properties": {
5338
- "include": {
5339
- "type": "array",
5340
- "items": {
5341
- "type": "string"
5342
- },
5343
- "default": [
5344
- "**/*.spec.ts"
5345
- ],
5346
- "description": "Globs of files to include, relative to project root."
5347
- },
5348
- "exclude": {
5349
- "type": "array",
5350
- "items": {
5351
- "type": "string"
5352
- },
5353
- "default": [],
5354
- "description": "Globs of files to exclude, relative to the project root."
5355
- },
5356
- "tsConfig": {
5357
- "type": "string",
5358
- "description": "The name of the TypeScript configuration file."
5359
- },
5360
- "polyfills": {
5361
- "type": "array",
5362
- "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
5363
- "items": {
5364
- "type": "string",
5365
- "uniqueItems": true
5366
- },
5367
- "default": []
5368
- },
5369
- "aot": {
5370
- "type": "boolean",
5371
- "description": "Run tests using Ahead of Time compilation.",
5372
- "default": false
5373
- }
5374
- },
5375
- "additionalProperties": false
5376
- },
5377
- "AngularDevkitBuildAngularBuildersWebTestRunnerSchema": {
5378
- "title": "Web Test Runner Target",
5379
- "description": "Web Test Runner target options for Build Facade.",
5380
- "type": "object",
5381
- "properties": {
5382
- "main": {
5383
- "type": "string",
5384
- "description": "The name of the main entry-point file."
5385
- },
5386
- "tsConfig": {
5387
- "type": "string",
5388
- "description": "The name of the TypeScript configuration file."
5389
- },
5390
- "polyfills": {
5391
- "description": "Polyfills to be included in the build.",
5392
- "oneOf": [
5393
- {
5394
- "type": "array",
5395
- "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
5396
- "items": {
5397
- "type": "string",
5398
- "uniqueItems": true
5399
- },
5400
- "default": []
5401
- },
5402
- {
5403
- "type": "string",
5404
- "description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
5405
- }
5406
- ]
5407
- },
5408
- "assets": {
5409
- "type": "array",
5410
- "description": "List of static application assets.",
5411
- "default": [],
5412
- "items": {
5413
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersWebTestRunnerSchema/definitions/assetPattern"
5414
- }
5415
- },
5416
- "scripts": {
5417
- "description": "Global scripts to be included in the build.",
5418
- "type": "array",
5419
- "default": [],
5420
- "items": {
5421
- "oneOf": [
5422
- {
5423
- "type": "object",
5424
- "properties": {
5425
- "input": {
5426
- "type": "string",
5427
- "description": "The file to include.",
5428
- "pattern": "\\.[cm]?jsx?$"
5429
- },
5430
- "bundleName": {
5431
- "type": "string",
5432
- "pattern": "^[\\w\\-.]*$",
5433
- "description": "The bundle name for this extra entry point."
5434
- },
5435
- "inject": {
5436
- "type": "boolean",
5437
- "description": "If the bundle will be referenced in the HTML file.",
5438
- "default": true
5439
- }
5440
- },
5441
- "additionalProperties": false
5442
- },
5443
- {
5444
- "type": "string",
5445
- "description": "The file to include.",
5446
- "pattern": "\\.[cm]?jsx?$"
5447
- }
5448
- ]
5449
- }
5450
- },
5451
- "styles": {
5452
- "description": "Global styles to be included in the build.",
5453
- "type": "array",
5454
- "default": [],
5455
- "items": {
5456
- "oneOf": [
5457
- {
5458
- "type": "object",
5459
- "properties": {
5460
- "input": {
5461
- "type": "string",
5462
- "description": "The file to include.",
5463
- "pattern": "\\.(?:css|scss|sass|less)$"
5464
- },
5465
- "bundleName": {
5466
- "type": "string",
5467
- "pattern": "^[\\w\\-.]*$",
5468
- "description": "The bundle name for this extra entry point."
5469
- },
5470
- "inject": {
5471
- "type": "boolean",
5472
- "description": "If the bundle will be referenced in the HTML file.",
5473
- "default": true
5474
- }
5475
- },
5476
- "additionalProperties": false
5477
- },
5478
- {
5479
- "type": "string",
5480
- "description": "The file to include.",
5481
- "pattern": "\\.(?:css|scss|sass|less)$"
5482
- }
5483
- ]
5484
- }
5485
- },
5486
- "inlineStyleLanguage": {
5487
- "description": "The stylesheet language to use for the application's inline component styles.",
5488
- "type": "string",
5489
- "default": "css",
5490
- "enum": [
5491
- "css",
5492
- "less",
5493
- "sass",
5494
- "scss"
5495
- ]
5496
- },
5497
- "stylePreprocessorOptions": {
5498
- "description": "Options to pass to style preprocessors",
5499
- "type": "object",
5500
- "properties": {
5501
- "includePaths": {
5502
- "description": "Paths to include. Paths will be resolved to workspace root.",
5503
- "type": "array",
5504
- "items": {
5505
- "type": "string"
5506
- },
5507
- "default": []
5508
- }
5509
- },
5510
- "additionalProperties": false
5511
- },
5512
- "include": {
5513
- "type": "array",
5514
- "items": {
5515
- "type": "string"
5516
- },
5517
- "default": [
5518
- "**/*.spec.ts"
5519
- ],
5520
- "description": "Globs of files to include, relative to project root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead."
5521
- },
5522
- "exclude": {
5523
- "type": "array",
5524
- "items": {
5525
- "type": "string"
5526
- },
5527
- "default": [],
5528
- "description": "Globs of files to exclude, relative to the project root."
5529
- },
5530
- "sourceMap": {
5531
- "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
5532
- "default": true,
5533
- "oneOf": [
5534
- {
5535
- "type": "object",
5536
- "properties": {
5537
- "scripts": {
5538
- "type": "boolean",
5539
- "description": "Output source maps for all scripts.",
5540
- "default": true
5541
- },
5542
- "styles": {
5543
- "type": "boolean",
5544
- "description": "Output source maps for all styles.",
5545
- "default": true
5546
- },
5547
- "vendor": {
5548
- "type": "boolean",
5549
- "description": "Resolve vendor packages source maps.",
5550
- "default": false
5551
- }
5552
- },
5553
- "additionalProperties": false
5554
- },
5555
- {
5556
- "type": "boolean"
5557
- }
5558
- ]
5559
- },
5560
- "progress": {
5561
- "type": "boolean",
5562
- "description": "Log progress to the console while building.",
5563
- "default": true
5564
- },
5565
- "watch": {
5566
- "type": "boolean",
5567
- "description": "Run build when files change."
5568
- },
5569
- "poll": {
5570
- "type": "number",
5571
- "description": "Enable and define the file watching poll time period in milliseconds."
5572
- },
5573
- "preserveSymlinks": {
5574
- "type": "boolean",
5575
- "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
5576
- },
5577
- "browsers": {
5578
- "type": "string",
5579
- "description": "Override which browsers tests are run against."
5580
- },
5581
- "codeCoverage": {
5582
- "type": "boolean",
5583
- "description": "Output a code coverage report.",
5584
- "default": false
5585
- },
5586
- "codeCoverageExclude": {
5587
- "type": "array",
5588
- "description": "Globs to exclude from code coverage.",
5589
- "items": {
5590
- "type": "string"
5591
- },
5592
- "default": []
5593
- },
5594
- "fileReplacements": {
5595
- "description": "Replace compilation source files with other compilation source files in the build.",
5596
- "type": "array",
5597
- "items": {
5598
- "oneOf": [
5599
- {
5600
- "type": "object",
5601
- "properties": {
5602
- "src": {
5603
- "type": "string"
5604
- },
5605
- "replaceWith": {
5606
- "type": "string"
5607
- }
5608
- },
5609
- "additionalProperties": false
5610
- },
5611
- {
5612
- "type": "object",
5613
- "properties": {
5614
- "replace": {
5615
- "type": "string"
5616
- },
5617
- "with": {
5618
- "type": "string"
5619
- }
5620
- },
5621
- "additionalProperties": false
5622
- }
5623
- ]
5624
- },
5625
- "default": []
5626
- },
5627
- "webWorkerTsConfig": {
5628
- "type": "string",
5629
- "description": "TypeScript configuration for Web Worker modules."
5630
- },
5631
- "aot": {
5632
- "type": "boolean",
5633
- "description": "Run tests using Ahead of Time compilation.",
5634
- "default": false
5635
- }
5636
- },
5637
- "additionalProperties": false,
5638
- "definitions": {
5639
- "assetPattern": {
5640
- "oneOf": [
5641
- {
5642
- "type": "object",
5643
- "properties": {
5644
- "glob": {
5645
- "type": "string",
5646
- "description": "The pattern to match."
5647
- },
5648
- "input": {
5649
- "type": "string",
5650
- "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
5651
- },
5652
- "output": {
5653
- "type": "string",
5654
- "default": "",
5655
- "description": "Absolute path within the output."
5656
- },
5657
- "ignore": {
5658
- "description": "An array of globs to ignore.",
5659
- "type": "array",
5660
- "items": {
5661
- "type": "string"
5662
- }
5663
- }
5664
- },
5665
- "additionalProperties": false
5666
- },
5667
- {
5668
- "type": "string"
5669
- }
5670
- ]
5671
- }
5672
- }
5673
- },
5674
5287
  "AngularDevkitBuildAngularBuildersPrerenderSchema": {
5675
5288
  "title": "Prerender Target",
5676
5289
  "type": "object",
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@angular/cli",
3
- "version": "21.2.0",
3
+ "version": "22.0.0-next.0",
4
4
  "description": "CLI tool for Angular",
5
5
  "main": "lib/cli/index.js",
6
6
  "bin": {
7
- "ng": "./bin/ng.js"
7
+ "ng": "bin/ng.js"
8
8
  },
9
9
  "keywords": [
10
10
  "Angular CLI",
@@ -16,7 +16,7 @@
16
16
  ],
17
17
  "repository": {
18
18
  "type": "git",
19
- "url": "https://github.com/angular/angular-cli.git"
19
+ "url": "git+https://github.com/angular/angular-cli.git"
20
20
  },
21
21
  "author": "Angular Authors",
22
22
  "license": "MIT",
@@ -25,20 +25,20 @@
25
25
  },
26
26
  "homepage": "https://github.com/angular/angular-cli",
27
27
  "dependencies": {
28
- "@angular-devkit/architect": "0.2102.0",
29
- "@angular-devkit/core": "21.2.0",
30
- "@angular-devkit/schematics": "21.2.0",
31
- "@inquirer/prompts": "7.10.1",
32
- "@listr2/prompt-adapter-inquirer": "3.0.5",
33
- "@modelcontextprotocol/sdk": "1.26.0",
34
- "@schematics/angular": "21.2.0",
28
+ "@angular-devkit/architect": "0.2200.0-next.0",
29
+ "@angular-devkit/core": "22.0.0-next.0",
30
+ "@angular-devkit/schematics": "22.0.0-next.0",
31
+ "@inquirer/prompts": "8.3.0",
32
+ "@listr2/prompt-adapter-inquirer": "4.1.2",
33
+ "@modelcontextprotocol/sdk": "1.27.1",
34
+ "@schematics/angular": "22.0.0-next.0",
35
35
  "@yarnpkg/lockfile": "1.1.0",
36
- "algoliasearch": "5.48.1",
36
+ "algoliasearch": "5.49.1",
37
37
  "ini": "6.0.0",
38
38
  "jsonc-parser": "3.3.1",
39
- "listr2": "9.0.5",
39
+ "listr2": "10.1.2",
40
40
  "npm-package-arg": "13.0.2",
41
- "pacote": "21.3.1",
41
+ "pacote": "21.4.0",
42
42
  "parse5-html-rewriting-stream": "8.0.0",
43
43
  "semver": "7.7.4",
44
44
  "yargs": "18.0.0",
@@ -47,19 +47,19 @@
47
47
  "ng-update": {
48
48
  "migrations": "@schematics/angular/migrations/migration-collection.json",
49
49
  "packageGroup": {
50
- "@angular/cli": "21.2.0",
51
- "@angular/build": "21.2.0",
52
- "@angular/ssr": "21.2.0",
53
- "@angular-devkit/architect": "0.2102.0",
54
- "@angular-devkit/build-angular": "21.2.0",
55
- "@angular-devkit/build-webpack": "0.2102.0",
56
- "@angular-devkit/core": "21.2.0",
57
- "@angular-devkit/schematics": "21.2.0"
50
+ "@angular/cli": "22.0.0-next.0",
51
+ "@angular/build": "22.0.0-next.0",
52
+ "@angular/ssr": "22.0.0-next.0",
53
+ "@angular-devkit/architect": "0.2200.0-next.0",
54
+ "@angular-devkit/build-angular": "22.0.0-next.0",
55
+ "@angular-devkit/build-webpack": "0.2200.0-next.0",
56
+ "@angular-devkit/core": "22.0.0-next.0",
57
+ "@angular-devkit/schematics": "22.0.0-next.0"
58
58
  }
59
59
  },
60
- "packageManager": "pnpm@10.30.0",
60
+ "packageManager": "pnpm@10.30.3",
61
61
  "engines": {
62
- "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
62
+ "node": "^22.22.0 || >=24.13.1",
63
63
  "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
64
64
  "yarn": ">= 1.13.0"
65
65
  }
@@ -461,7 +461,7 @@ class AddCommandModule extends schematics_command_module_1.SchematicsCommandModu
461
461
  context.collectionName = (0, node_path_1.dirname)(resolvedCollectionPath);
462
462
  }
463
463
  else {
464
- await packageManager.add(packageIdentifier.toString(), 'none', savePackage !== 'dependencies', false, true, {
464
+ await packageManager.add(packageIdentifier.toString(), 'none', savePackage === 'devDependencies', false, true, {
465
465
  registry,
466
466
  });
467
467
  }