@angular/cli 18.1.0-next.0 → 18.1.0-next.2

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 (130) hide show
  1. package/bin/bootstrap.js +1 -1
  2. package/bin/ng.js +1 -1
  3. package/lib/cli/index.d.ts +1 -1
  4. package/lib/cli/index.js +7 -7
  5. package/lib/config/schema.json +27 -1
  6. package/lib/config/workspace-schema.d.ts +1 -1
  7. package/lib/init.d.ts +1 -1
  8. package/lib/init.js +1 -1
  9. package/package.json +23 -14
  10. package/src/analytics/analytics-collector.d.ts +1 -1
  11. package/src/analytics/analytics-collector.js +1 -1
  12. package/src/analytics/analytics-parameters.d.ts +1 -1
  13. package/src/analytics/analytics-parameters.js +1 -1
  14. package/src/analytics/analytics.d.ts +1 -1
  15. package/src/analytics/analytics.js +7 -7
  16. package/src/command-builder/architect-base-command-module.d.ts +1 -1
  17. package/src/command-builder/architect-base-command-module.js +1 -1
  18. package/src/command-builder/architect-command-module.d.ts +1 -1
  19. package/src/command-builder/architect-command-module.js +1 -1
  20. package/src/command-builder/command-module.d.ts +1 -1
  21. package/src/command-builder/command-module.js +1 -1
  22. package/src/command-builder/command-runner.d.ts +1 -1
  23. package/src/command-builder/command-runner.js +2 -3
  24. package/src/command-builder/schematics-command-module.d.ts +1 -1
  25. package/src/command-builder/schematics-command-module.js +88 -51
  26. package/src/command-builder/utilities/command.d.ts +1 -1
  27. package/src/command-builder/utilities/command.js +3 -3
  28. package/src/command-builder/utilities/json-help.d.ts +1 -1
  29. package/src/command-builder/utilities/json-help.js +2 -3
  30. package/src/command-builder/utilities/json-schema.d.ts +1 -1
  31. package/src/command-builder/utilities/json-schema.js +2 -3
  32. package/src/command-builder/utilities/normalize-options-middleware.d.ts +1 -1
  33. package/src/command-builder/utilities/normalize-options-middleware.js +2 -3
  34. package/src/command-builder/utilities/schematic-engine-host.d.ts +1 -1
  35. package/src/command-builder/utilities/schematic-engine-host.js +1 -1
  36. package/src/command-builder/utilities/schematic-workflow.d.ts +1 -1
  37. package/src/command-builder/utilities/schematic-workflow.js +2 -3
  38. package/src/commands/add/cli.d.ts +1 -1
  39. package/src/commands/add/cli.js +12 -2
  40. package/src/commands/analytics/cli.d.ts +1 -1
  41. package/src/commands/analytics/cli.js +1 -1
  42. package/src/commands/analytics/info/cli.d.ts +1 -1
  43. package/src/commands/analytics/info/cli.js +1 -1
  44. package/src/commands/analytics/settings/cli.d.ts +1 -1
  45. package/src/commands/analytics/settings/cli.js +1 -1
  46. package/src/commands/build/cli.d.ts +1 -1
  47. package/src/commands/build/cli.js +1 -1
  48. package/src/commands/cache/clean/cli.d.ts +1 -1
  49. package/src/commands/cache/clean/cli.js +1 -1
  50. package/src/commands/cache/cli.d.ts +1 -1
  51. package/src/commands/cache/cli.js +1 -1
  52. package/src/commands/cache/info/cli.d.ts +1 -1
  53. package/src/commands/cache/info/cli.js +1 -1
  54. package/src/commands/cache/settings/cli.d.ts +1 -1
  55. package/src/commands/cache/settings/cli.js +1 -1
  56. package/src/commands/cache/utilities.d.ts +1 -1
  57. package/src/commands/cache/utilities.js +3 -4
  58. package/src/commands/command-config.d.ts +1 -1
  59. package/src/commands/command-config.js +1 -1
  60. package/src/commands/completion/cli.d.ts +1 -1
  61. package/src/commands/completion/cli.js +1 -1
  62. package/src/commands/config/cli.d.ts +1 -1
  63. package/src/commands/config/cli.js +1 -1
  64. package/src/commands/deploy/cli.d.ts +1 -1
  65. package/src/commands/deploy/cli.js +1 -1
  66. package/src/commands/e2e/cli.d.ts +1 -1
  67. package/src/commands/e2e/cli.js +1 -1
  68. package/src/commands/extract-i18n/cli.d.ts +1 -1
  69. package/src/commands/extract-i18n/cli.js +1 -1
  70. package/src/commands/generate/cli.d.ts +1 -1
  71. package/src/commands/generate/cli.js +1 -1
  72. package/src/commands/lint/cli.d.ts +1 -1
  73. package/src/commands/lint/cli.js +1 -1
  74. package/src/commands/make-this-awesome/cli.d.ts +1 -1
  75. package/src/commands/make-this-awesome/cli.js +1 -1
  76. package/src/commands/new/cli.d.ts +1 -1
  77. package/src/commands/new/cli.js +1 -1
  78. package/src/commands/run/cli.d.ts +1 -1
  79. package/src/commands/run/cli.js +1 -1
  80. package/src/commands/serve/cli.d.ts +1 -1
  81. package/src/commands/serve/cli.js +1 -1
  82. package/src/commands/test/cli.d.ts +1 -1
  83. package/src/commands/test/cli.js +1 -1
  84. package/src/commands/update/cli.d.ts +2 -1
  85. package/src/commands/update/cli.js +4 -3
  86. package/src/commands/update/schematic/index.d.ts +1 -1
  87. package/src/commands/update/schematic/index.js +3 -4
  88. package/src/commands/version/cli.d.ts +1 -1
  89. package/src/commands/version/cli.js +1 -1
  90. package/src/typings-bazel.d.ts +1 -1
  91. package/src/typings.d.ts +1 -1
  92. package/src/typings.js +1 -1
  93. package/src/utilities/color.d.ts +1 -2
  94. package/src/utilities/color.js +2 -8
  95. package/src/utilities/completion.d.ts +1 -1
  96. package/src/utilities/completion.js +4 -5
  97. package/src/utilities/config.d.ts +1 -1
  98. package/src/utilities/config.js +9 -9
  99. package/src/utilities/environment-options.d.ts +1 -1
  100. package/src/utilities/environment-options.js +1 -1
  101. package/src/utilities/eol.d.ts +1 -1
  102. package/src/utilities/eol.js +2 -3
  103. package/src/utilities/error.d.ts +1 -1
  104. package/src/utilities/error.js +2 -3
  105. package/src/utilities/find-up.d.ts +1 -1
  106. package/src/utilities/find-up.js +2 -3
  107. package/src/utilities/json-file.d.ts +1 -1
  108. package/src/utilities/json-file.js +4 -4
  109. package/src/utilities/load-esm.d.ts +1 -2
  110. package/src/utilities/load-esm.js +2 -3
  111. package/src/utilities/log-file.d.ts +1 -1
  112. package/src/utilities/log-file.js +2 -3
  113. package/src/utilities/memoize.d.ts +1 -1
  114. package/src/utilities/memoize.js +2 -3
  115. package/src/utilities/package-manager.d.ts +1 -1
  116. package/src/utilities/package-manager.js +1 -1
  117. package/src/utilities/package-metadata.d.ts +1 -1
  118. package/src/utilities/package-metadata.js +4 -5
  119. package/src/utilities/package-tree.d.ts +1 -1
  120. package/src/utilities/package-tree.js +4 -5
  121. package/src/utilities/project.d.ts +1 -1
  122. package/src/utilities/project.js +2 -3
  123. package/src/utilities/prompt.d.ts +9 -4
  124. package/src/utilities/prompt.js +48 -30
  125. package/src/utilities/spinner.d.ts +1 -1
  126. package/src/utilities/spinner.js +1 -1
  127. package/src/utilities/tty.d.ts +1 -1
  128. package/src/utilities/tty.js +2 -3
  129. package/src/utilities/version.d.ts +1 -1
  130. package/src/utilities/version.js +2 -2
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  const architect_command_module_1 = require("../../command-builder/architect-command-module");
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { ArchitectCommandModule } from '../../command-builder/architect-command-module';
9
9
  import { CommandModuleImplementation } from '../../command-builder/command-module';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  const path_1 = require("path");
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Argv } from 'yargs';
9
9
  import { CommandModule, CommandScope, Options } from '../../command-builder/command-module';
@@ -22,6 +22,7 @@ interface UpdateCommandArgs {
22
22
  export default class UpdateCommandModule extends CommandModule<UpdateCommandArgs> {
23
23
  scope: CommandScope;
24
24
  protected shouldReportAnalytics: boolean;
25
+ private readonly resolvePaths;
25
26
  command: string;
26
27
  describe: string;
27
28
  longDescriptionPath: string;
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -61,6 +61,7 @@ const UPDATE_SCHEMATIC_COLLECTION = path.join(__dirname, 'schematic/collection.j
61
61
  class UpdateCommandModule extends command_module_1.CommandModule {
62
62
  scope = command_module_1.CommandScope.In;
63
63
  shouldReportAnalytics = false;
64
+ resolvePaths = [__dirname, this.context.root];
64
65
  command = 'update [packages..]';
65
66
  describe = 'Updates your workspace and its dependencies. See https://update.angular.dev/.';
66
67
  longDescriptionPath = (0, path_1.join)(__dirname, 'long-description.md');
@@ -196,7 +197,7 @@ class UpdateCommandModule extends command_module_1.CommandModule {
196
197
  packageManagerForce: this.packageManagerForce(options.verbose),
197
198
  // __dirname -> favor @schematics/update from this package
198
199
  // Otherwise, use packages from the active workspace (migrations)
199
- resolvePaths: [__dirname, this.context.root],
200
+ resolvePaths: this.resolvePaths,
200
201
  schemaValidation: true,
201
202
  engineHostCreator: (options) => new schematic_engine_host_1.SchematicEngineHost(options.resolvePaths),
202
203
  });
@@ -397,7 +398,7 @@ class UpdateCommandModule extends command_module_1.CommandModule {
397
398
  // This avoids issues with package hoisting.
398
399
  try {
399
400
  const packageRequire = (0, module_1.createRequire)(packagePath + '/');
400
- migrations = packageRequire.resolve(migrations);
401
+ migrations = packageRequire.resolve(migrations, { paths: this.resolvePaths });
401
402
  }
402
403
  catch (e) {
403
404
  (0, error_1.assertIsError)(e);
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Rule } from '@angular-devkit/schematics';
9
9
  import { Schema as UpdateSchema } from './schema';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -30,7 +30,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.angularMajorCompatGuarantee = void 0;
33
+ exports.angularMajorCompatGuarantee = angularMajorCompatGuarantee;
34
+ exports.default = default_1;
34
35
  const core_1 = require("@angular-devkit/core");
35
36
  const schematics_1 = require("@angular-devkit/schematics");
36
37
  const npa = __importStar(require("npm-package-arg"));
@@ -64,7 +65,6 @@ function angularMajorCompatGuarantee(range) {
64
65
  }
65
66
  return semver.validRange(newRange) || range;
66
67
  }
67
- exports.angularMajorCompatGuarantee = angularMajorCompatGuarantee;
68
68
  // This is a map of packageGroupName to range extending function. If it isn't found, the range is
69
69
  // kept the same.
70
70
  const knownPeerCompatibleList = {
@@ -703,4 +703,3 @@ function default_1(options) {
703
703
  }
704
704
  };
705
705
  }
706
- exports.default = default_1;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { Argv } from 'yargs';
9
9
  import { CommandModule, CommandModuleImplementation } from '../../command-builder/command-module';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
 
9
9
  /* eslint-disable import/no-extraneous-dependencies */
package/src/typings.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  declare module 'npm-pick-manifest' {
9
9
  function pickManifest(metadata: import('./utilities/package-metadata').PackageMetadata, selector: string): import('./utilities/package-metadata').PackageManifest;
package/src/typings.js CHANGED
@@ -4,5 +4,5 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
@@ -3,9 +3,8 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import * as ansiColors from 'ansi-colors';
9
- export declare function removeColor(text: string): string;
10
9
  declare const colors: typeof ansiColors;
11
10
  export { colors };
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -30,7 +30,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.colors = exports.removeColor = void 0;
33
+ exports.colors = void 0;
34
34
  const ansiColors = __importStar(require("ansi-colors"));
35
35
  const tty_1 = require("tty");
36
36
  function supportColor() {
@@ -57,12 +57,6 @@ function supportColor() {
57
57
  }
58
58
  return false;
59
59
  }
60
- function removeColor(text) {
61
- // This has been created because when colors.enabled is false unstyle doesn't work
62
- // see: https://github.com/doowb/ansi-colors/blob/a4794363369d7b4d1872d248fc43a12761640d8e/index.js#L38
63
- return text.replace(ansiColors.ansiRegex, '');
64
- }
65
- exports.removeColor = removeColor;
66
60
  // Create a separate instance to prevent unintended global changes to the color configuration
67
61
  const colors = ansiColors.create();
68
62
  exports.colors = colors;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { logging } from '@angular-devkit/core';
9
9
  /**
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -30,7 +30,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.hasGlobalCliInstall = exports.initializeAutocomplete = exports.considerSettingUpAutocompletion = void 0;
33
+ exports.considerSettingUpAutocompletion = considerSettingUpAutocompletion;
34
+ exports.initializeAutocomplete = initializeAutocomplete;
35
+ exports.hasGlobalCliInstall = hasGlobalCliInstall;
34
36
  const core_1 = require("@angular-devkit/core");
35
37
  const child_process_1 = require("child_process");
36
38
  const fs_1 = require("fs");
@@ -95,7 +97,6 @@ Appended \`source <(ng completion script)\` to \`${rcFile}\`. Restart your termi
95
97
  await setCompletionConfig({ ...completionConfig, prompted: true });
96
98
  return undefined;
97
99
  }
98
- exports.considerSettingUpAutocompletion = considerSettingUpAutocompletion;
99
100
  async function getCompletionConfig() {
100
101
  const wksp = await (0, config_1.getWorkspace)('global');
101
102
  return wksp?.getCli()?.['completion'];
@@ -207,7 +208,6 @@ async function initializeAutocomplete() {
207
208
  }
208
209
  return rcFile;
209
210
  }
210
- exports.initializeAutocomplete = initializeAutocomplete;
211
211
  /** Returns an ordered list of possible candidates of RC files used by the given shell. */
212
212
  function getShellRunCommandCandidates(shell, home) {
213
213
  if (shell.toLowerCase().includes('bash')) {
@@ -257,4 +257,3 @@ function hasGlobalCliInstall() {
257
257
  });
258
258
  });
259
259
  }
260
- exports.hasGlobalCliInstall = hasGlobalCliInstall;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { json, workspaces } from '@angular-devkit/core';
9
9
  import { PackageManager } from '../../lib/config/workspace-schema';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -30,7 +30,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.isWarningEnabled = exports.getSchematicDefaults = exports.getConfiguredPackageManager = exports.getProjectByCwd = exports.validateWorkspace = exports.getWorkspaceRaw = exports.getWorkspace = exports.AngularWorkspace = exports.workspaceSchemaPath = void 0;
33
+ exports.AngularWorkspace = exports.workspaceSchemaPath = void 0;
34
+ exports.getWorkspace = getWorkspace;
35
+ exports.getWorkspaceRaw = getWorkspaceRaw;
36
+ exports.validateWorkspace = validateWorkspace;
37
+ exports.getProjectByCwd = getProjectByCwd;
38
+ exports.getConfiguredPackageManager = getConfiguredPackageManager;
39
+ exports.getSchematicDefaults = getSchematicDefaults;
40
+ exports.isWarningEnabled = isWarningEnabled;
34
41
  const core_1 = require("@angular-devkit/core");
35
42
  const fs_1 = require("fs");
36
43
  const os = __importStar(require("os"));
@@ -180,7 +187,6 @@ async function getWorkspace(level) {
180
187
  `\n${error instanceof Error ? error.message : error}`);
181
188
  }
182
189
  }
183
- exports.getWorkspace = getWorkspace;
184
190
  /**
185
191
  * This method will load the workspace configuration in raw JSON format.
186
192
  * When `level` is `global` and file doesn't exists, it will be created.
@@ -202,7 +208,6 @@ async function getWorkspaceRaw(level = 'local') {
202
208
  }
203
209
  return [new json_file_1.JSONFile(configPath), configPath];
204
210
  }
205
- exports.getWorkspaceRaw = getWorkspaceRaw;
206
211
  async function validateWorkspace(data, isGlobal) {
207
212
  const schema = (0, json_file_1.readAndParseJson)(exports.workspaceSchemaPath);
208
213
  // We should eventually have a dedicated global config schema and use that to validate.
@@ -220,7 +225,6 @@ async function validateWorkspace(data, isGlobal) {
220
225
  throw new core_1.json.schema.SchemaValidationException(errors);
221
226
  }
222
227
  }
223
- exports.validateWorkspace = validateWorkspace;
224
228
  function findProjectByPath(workspace, location) {
225
229
  const isInside = (base, potential) => {
226
230
  const absoluteBase = path.resolve(workspace.basePath, base);
@@ -268,7 +272,6 @@ function getProjectByCwd(workspace) {
268
272
  }
269
273
  return null;
270
274
  }
271
- exports.getProjectByCwd = getProjectByCwd;
272
275
  async function getConfiguredPackageManager() {
273
276
  const getPackageManager = (source) => {
274
277
  if (isJsonObject(source)) {
@@ -294,7 +297,6 @@ async function getConfiguredPackageManager() {
294
297
  }
295
298
  return result;
296
299
  }
297
- exports.getConfiguredPackageManager = getConfiguredPackageManager;
298
300
  async function getSchematicDefaults(collection, schematic, project) {
299
301
  const result = {};
300
302
  const mergeOptions = (source) => {
@@ -323,7 +325,6 @@ async function getSchematicDefaults(collection, schematic, project) {
323
325
  }
324
326
  return result;
325
327
  }
326
- exports.getSchematicDefaults = getSchematicDefaults;
327
328
  async function isWarningEnabled(warning) {
328
329
  const getWarning = (source) => {
329
330
  if (isJsonObject(source)) {
@@ -352,4 +353,3 @@ async function isWarningEnabled(warning) {
352
353
  // All warnings are enabled by default
353
354
  return result ?? true;
354
355
  }
355
- exports.isWarningEnabled = isWarningEnabled;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  export declare const analyticsDisabled: boolean;
9
9
  export declare const isCI: boolean;
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.forceAutocomplete = exports.ngDebug = exports.disableVersionCheck = exports.isCI = exports.analyticsDisabled = void 0;
@@ -3,6 +3,6 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  export declare function getEOL(content: string): string;
@@ -4,10 +4,10 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.getEOL = void 0;
10
+ exports.getEOL = getEOL;
11
11
  const node_os_1 = require("node:os");
12
12
  const CRLF = '\r\n';
13
13
  const LF = '\n';
@@ -20,4 +20,3 @@ function getEOL(content) {
20
20
  }
21
21
  return node_os_1.EOL;
22
22
  }
23
- exports.getEOL = getEOL;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  export declare function assertIsError(value: unknown): asserts value is Error & {
9
9
  code?: string;
@@ -4,13 +4,13 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  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
- exports.assertIsError = void 0;
13
+ exports.assertIsError = assertIsError;
14
14
  const assert_1 = __importDefault(require("assert"));
15
15
  function assertIsError(value) {
16
16
  const isError = value instanceof Error ||
@@ -18,4 +18,3 @@ function assertIsError(value) {
18
18
  (typeof value === 'object' && value && 'name' in value && 'message' in value);
19
19
  (0, assert_1.default)(isError, 'catch clause variable is not an Error instance');
20
20
  }
21
- exports.assertIsError = assertIsError;
@@ -3,6 +3,6 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  export declare function findUp(names: string | string[], from: string): string | null;
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -30,7 +30,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.findUp = void 0;
33
+ exports.findUp = findUp;
34
34
  const fs_1 = require("fs");
35
35
  const path = __importStar(require("path"));
36
36
  function findUp(names, from) {
@@ -50,4 +50,3 @@ function findUp(names, from) {
50
50
  }
51
51
  return null;
52
52
  }
53
- exports.findUp = findUp;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  export type InsertionIndex = (properties: string[]) => number;
9
9
  export type JSONPath = (string | number)[];
@@ -4,10 +4,12 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.parseJson = exports.readAndParseJson = exports.JSONFile = void 0;
10
+ exports.JSONFile = void 0;
11
+ exports.readAndParseJson = readAndParseJson;
12
+ exports.parseJson = parseJson;
11
13
  const fs_1 = require("fs");
12
14
  const jsonc_parser_1 = require("jsonc-parser");
13
15
  const eol_1 = require("./eol");
@@ -93,7 +95,6 @@ function readAndParseJson(path) {
93
95
  }
94
96
  return content;
95
97
  }
96
- exports.readAndParseJson = readAndParseJson;
97
98
  function formatError(path, errors) {
98
99
  const { error, offset } = errors[0];
99
100
  throw new Error(`Failed to parse "${path}" as JSON AST Object. ${(0, jsonc_parser_1.printParseErrorCode)(error)} at location: ${offset}.`);
@@ -102,4 +103,3 @@ function formatError(path, errors) {
102
103
  function parseJson(content) {
103
104
  return (0, jsonc_parser_1.parse)(content, undefined, { allowTrailingComma: true });
104
105
  }
105
- exports.parseJson = parseJson;
@@ -3,9 +3,8 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
- /// <reference types="node" />
9
8
  /**
10
9
  * This uses a dynamic import to load a module which may be ESM.
11
10
  * CommonJS code can load ESM code via a dynamic import. Unfortunately, TypeScript
@@ -4,10 +4,10 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.loadEsmModule = void 0;
10
+ exports.loadEsmModule = loadEsmModule;
11
11
  /**
12
12
  * Lazily compiled dynamic import loader function.
13
13
  */
@@ -28,4 +28,3 @@ function loadEsmModule(modulePath) {
28
28
  load ??= new Function('modulePath', `return import(modulePath);`);
29
29
  return load(modulePath);
30
30
  }
31
- exports.loadEsmModule = loadEsmModule;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  /**
9
9
  * Writes an Error to a temporary log file.
@@ -4,10 +4,10 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.writeErrorToLogFile = void 0;
10
+ exports.writeErrorToLogFile = writeErrorToLogFile;
11
11
  const fs_1 = require("fs");
12
12
  const os_1 = require("os");
13
13
  const path_1 = require("path");
@@ -25,4 +25,3 @@ function writeErrorToLogFile(error) {
25
25
  (0, fs_1.appendFileSync)(logPath, '[error] ' + (error.stack || error) + '\n\n');
26
26
  return logPath;
27
27
  }
28
- exports.writeErrorToLogFile = writeErrorToLogFile;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  /**
9
9
  * A decorator that memoizes methods and getters.
@@ -4,10 +4,10 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.memoize = void 0;
10
+ exports.memoize = memoize;
11
11
  /**
12
12
  * A decorator that memoizes methods and getters.
13
13
  *
@@ -40,7 +40,6 @@ function memoize(target, propertyKey, descriptor) {
40
40
  },
41
41
  };
42
42
  }
43
- exports.memoize = memoize;
44
43
  /** Method to check if value is a non primitive. */
45
44
  function isNonPrimitive(value) {
46
45
  return ((value !== null && typeof value === 'object') ||
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { PackageManager } from '../../lib/config/workspace-schema';
9
9
  import { AngularWorkspace } from './config';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
10
10
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { logging } from '@angular-devkit/core';
9
9
  import type { Manifest, Packument } from 'pacote';