@angular/cli 18.0.0-rc.3 → 18.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cli",
3
- "version": "18.0.0-rc.3",
3
+ "version": "18.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.1800.0-rc.3",
29
- "@angular-devkit/core": "18.0.0-rc.3",
30
- "@angular-devkit/schematics": "18.0.0-rc.3",
31
- "@schematics/angular": "18.0.0-rc.3",
28
+ "@angular-devkit/architect": "0.1800.1",
29
+ "@angular-devkit/core": "18.0.1",
30
+ "@angular-devkit/schematics": "18.0.1",
31
+ "@schematics/angular": "18.0.1",
32
32
  "@yarnpkg/lockfile": "1.1.0",
33
33
  "ansi-colors": "4.1.3",
34
34
  "ini": "4.1.2",
@@ -46,14 +46,14 @@
46
46
  "ng-update": {
47
47
  "migrations": "@schematics/angular/migrations/migration-collection.json",
48
48
  "packageGroup": {
49
- "@angular/cli": "18.0.0-rc.3",
50
- "@angular/build": "18.0.0-rc.3",
51
- "@angular/ssr": "18.0.0-rc.3",
52
- "@angular-devkit/architect": "0.1800.0-rc.3",
53
- "@angular-devkit/build-angular": "18.0.0-rc.3",
54
- "@angular-devkit/build-webpack": "0.1800.0-rc.3",
55
- "@angular-devkit/core": "18.0.0-rc.3",
56
- "@angular-devkit/schematics": "18.0.0-rc.3"
49
+ "@angular/cli": "18.0.1",
50
+ "@angular/build": "18.0.1",
51
+ "@angular/ssr": "18.0.1",
52
+ "@angular-devkit/architect": "0.1800.1",
53
+ "@angular-devkit/build-angular": "18.0.1",
54
+ "@angular-devkit/build-webpack": "0.1800.1",
55
+ "@angular-devkit/core": "18.0.1",
56
+ "@angular-devkit/schematics": "18.0.1"
57
57
  }
58
58
  },
59
59
  "engines": {
@@ -71,6 +71,8 @@ async function runCommand(args, logger) {
71
71
  const usageInstance = localYargs.getInternalMethods().getUsageInstance();
72
72
  usageInstance.help = () => (0, json_help_1.jsonHelpUsage)();
73
73
  }
74
+ // Add default command to support version option when no subcommand is specified
75
+ localYargs.command('*', false, (builder) => builder.version('version', 'Show Angular CLI version.', version_1.VERSION.full));
74
76
  await localYargs
75
77
  .scriptName('ng')
76
78
  // https://github.com/yargs/yargs/blob/main/docs/advanced.md#customizing-yargs-parser
@@ -103,7 +105,7 @@ async function runCommand(args, logger) {
103
105
  .demandCommand(1, command_1.demandCommandFailureMessage)
104
106
  .recommendCommands()
105
107
  .middleware(normalize_options_middleware_1.normalizeOptionsMiddleware)
106
- .version('version', 'Show Angular CLI version.', version_1.VERSION.full)
108
+ .version(false)
107
109
  .showHelpOnFail(false)
108
110
  .strict()
109
111
  .fail((msg, err) => {
@@ -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('18.0.0-rc.3');
28
+ // export const VERSION = new Version('18.0.1');
29
29
  exports.VERSION = new Version(JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, '../../package.json'), 'utf-8')).version);