nx 22.0.0-beta.2 → 22.0.0-beta.3

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 (79) hide show
  1. package/migrations.json +5 -0
  2. package/package.json +12 -12
  3. package/project.json +2 -1
  4. package/schemas/nx-schema.json +339 -246
  5. package/schemas/project-schema.json +72 -12
  6. package/src/adapter/angular-json.d.ts.map +1 -1
  7. package/src/adapter/angular-json.js +13 -17
  8. package/src/command-line/init/init-v2.js +1 -1
  9. package/src/command-line/release/changelog.d.ts.map +1 -1
  10. package/src/command-line/release/changelog.js +1 -3
  11. package/src/command-line/release/command-object.d.ts +0 -6
  12. package/src/command-line/release/command-object.d.ts.map +1 -1
  13. package/src/command-line/release/config/config.d.ts +1 -1
  14. package/src/command-line/release/config/config.d.ts.map +1 -1
  15. package/src/command-line/release/config/config.js +41 -133
  16. package/src/command-line/release/plan-check.d.ts.map +1 -1
  17. package/src/command-line/release/plan-check.js +1 -3
  18. package/src/command-line/release/plan.d.ts.map +1 -1
  19. package/src/command-line/release/plan.js +1 -3
  20. package/src/command-line/release/publish.d.ts.map +1 -1
  21. package/src/command-line/release/publish.js +1 -3
  22. package/src/command-line/release/release.d.ts.map +1 -1
  23. package/src/command-line/release/release.js +1 -3
  24. package/src/command-line/release/utils/git.d.ts.map +1 -1
  25. package/src/command-line/release/utils/git.js +3 -1
  26. package/src/command-line/release/utils/resolve-semver-specifier.d.ts +2 -1
  27. package/src/command-line/release/utils/resolve-semver-specifier.d.ts.map +1 -1
  28. package/src/command-line/release/utils/semver.d.ts +15 -9
  29. package/src/command-line/release/utils/semver.d.ts.map +1 -1
  30. package/src/command-line/release/utils/semver.js +30 -24
  31. package/src/command-line/release/utils/shared.d.ts +4 -1
  32. package/src/command-line/release/utils/shared.d.ts.map +1 -1
  33. package/src/command-line/release/utils/shared.js +33 -11
  34. package/src/command-line/release/utils/test/test-utils.d.ts +20 -0
  35. package/src/command-line/release/utils/test/test-utils.d.ts.map +1 -0
  36. package/src/command-line/release/utils/test/test-utils.js +24 -0
  37. package/src/command-line/release/version/derive-specifier-from-conventional-commits.d.ts.map +1 -1
  38. package/src/command-line/release/version/derive-specifier-from-conventional-commits.js +10 -1
  39. package/src/command-line/release/version/release-group-processor.d.ts.map +1 -1
  40. package/src/command-line/release/version/release-group-processor.js +1 -2
  41. package/src/command-line/release/version/test-utils.d.ts.map +1 -1
  42. package/src/command-line/release/version/test-utils.js +0 -4
  43. package/src/command-line/release/version.d.ts.map +1 -1
  44. package/src/command-line/release/version.js +1 -8
  45. package/src/config/nx-json.d.ts +2 -31
  46. package/src/config/nx-json.d.ts.map +1 -1
  47. package/src/config/workspace-json-project-json.d.ts +2 -2
  48. package/src/config/workspace-json-project-json.d.ts.map +1 -1
  49. package/src/core/graph/main.js +1 -1
  50. package/src/devkit-exports.d.ts +1 -1
  51. package/src/devkit-exports.d.ts.map +1 -1
  52. package/src/migrations/update-21-0-0/release-changelog-config-changes.d.ts.map +1 -1
  53. package/src/migrations/update-21-0-0/release-version-config-changes.d.ts.map +1 -1
  54. package/src/migrations/update-21-0-0/release-version-config-changes.js +5 -15
  55. package/src/migrations/update-22-0-0/release-version-config-changes.d.ts +3 -0
  56. package/src/migrations/update-22-0-0/release-version-config-changes.d.ts.map +1 -0
  57. package/src/migrations/update-22-0-0/release-version-config-changes.js +101 -0
  58. package/src/native/nx.wasm32-wasi.wasm +0 -0
  59. package/src/plugins/js/index.d.ts +1 -2
  60. package/src/plugins/js/index.d.ts.map +1 -1
  61. package/src/plugins/js/index.js +28 -32
  62. package/src/plugins/js/lock-file/lock-file.d.ts +2 -2
  63. package/src/plugins/js/lock-file/lock-file.d.ts.map +1 -1
  64. package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +1 -1
  65. package/src/project-graph/plugins/loaded-nx-plugin.d.ts.map +1 -1
  66. package/src/project-graph/plugins/loaded-nx-plugin.js +8 -6
  67. package/src/project-graph/plugins/public-api.d.ts +1 -36
  68. package/src/project-graph/plugins/public-api.d.ts.map +1 -1
  69. package/src/project-graph/plugins/utils.d.ts +4 -2
  70. package/src/project-graph/plugins/utils.d.ts.map +1 -1
  71. package/src/command-line/release/config/use-legacy-versioning.d.ts +0 -3
  72. package/src/command-line/release/config/use-legacy-versioning.d.ts.map +0 -1
  73. package/src/command-line/release/config/use-legacy-versioning.js +0 -9
  74. package/src/command-line/release/utils/batch-projects-by-generator-config.d.ts +0 -8
  75. package/src/command-line/release/utils/batch-projects-by-generator-config.d.ts.map +0 -1
  76. package/src/command-line/release/utils/batch-projects-by-generator-config.js +0 -39
  77. package/src/command-line/release/version-legacy.d.ts +0 -47
  78. package/src/command-line/release/version-legacy.d.ts.map +0 -1
  79. package/src/command-line/release/version-legacy.js +0 -453
@@ -197,18 +197,7 @@
197
197
  "description": "Configuration for the nx release commands.",
198
198
  "properties": {
199
199
  "version": {
200
- "type": "object",
201
- "description": "Configuration for the nx release version command.",
202
- "properties": {
203
- "generator": {
204
- "type": "string",
205
- "description": "The version generator to use. Defaults to @nx/js:release-version."
206
- },
207
- "generatorOptions": {
208
- "type": "object",
209
- "description": "Options for the version generator."
210
- }
211
- }
200
+ "$ref": "#/definitions/NxReleaseVersionConfiguration"
212
201
  }
213
202
  }
214
203
  }
@@ -331,6 +320,77 @@
331
320
  }
332
321
  ]
333
322
  }
323
+ },
324
+ "NxReleaseVersionConfiguration": {
325
+ "type": "object",
326
+ "description": "Project-specific configuration for the versioning phase of releases. This is a subset of the version configuration options available at the workspace level.",
327
+ "additionalProperties": false,
328
+ "properties": {
329
+ "manifestRootsToUpdate": {
330
+ "type": "array",
331
+ "items": {
332
+ "oneOf": [
333
+ {
334
+ "type": "string",
335
+ "description": "Path to the directory containing a manifest file to update. Supports placeholders like {projectRoot} and {projectName}."
336
+ },
337
+ {
338
+ "type": "object",
339
+ "properties": {
340
+ "path": {
341
+ "type": "string",
342
+ "description": "Path to the directory containing a manifest file to update. Supports placeholders like {projectRoot} and {projectName}."
343
+ },
344
+ "preserveLocalDependencyProtocols": {
345
+ "type": "boolean",
346
+ "description": "Whether to preserve local dependency references using protocols like 'workspace:' or 'file:'. Set this to false for dist files that need to be published if not using a package manager that swaps references at publish time like pnpm or bun.",
347
+ "default": true
348
+ }
349
+ },
350
+ "required": ["path"],
351
+ "additionalProperties": false
352
+ }
353
+ ]
354
+ },
355
+ "description": "A list of directories containing manifest files (such as package.json) to apply updates to when versioning. By default, only the project root will be used, but you could customize this to only version a manifest in a dist directory, or even version multiple manifests in different directories, such as both source and dist."
356
+ },
357
+ "currentVersionResolver": {
358
+ "type": "string",
359
+ "enum": ["registry", "disk", "git-tag", "none"],
360
+ "description": "The resolver to use for determining the current version of a project during versioning. This is needed for versioning approaches which involve relatively modifying a current version to arrive at a new version, such as semver bumps like 'patch', 'minor' etc. Using 'none' explicitly declares that the current version is not needed to compute the new version, and should only be used with appropriate version actions implementations that support it."
361
+ },
362
+ "currentVersionResolverMetadata": {
363
+ "type": "object",
364
+ "additionalProperties": true,
365
+ "description": "Metadata to provide to the configured currentVersionResolver to help it in determining the current version. What to pass here is specific to each resolver."
366
+ },
367
+ "fallbackCurrentVersionResolver": {
368
+ "type": "string",
369
+ "enum": ["disk"],
370
+ "description": "The fallback version resolver to use when the configured currentVersionResolver fails to resolve the current version."
371
+ },
372
+ "versionPrefix": {
373
+ "type": "string",
374
+ "enum": ["auto", "", "~", "^", "="],
375
+ "default": "auto",
376
+ "description": "The prefix to use when versioning dependencies. This can be one of the following: auto, '', '~', '^', '=', where auto means the existing prefix will be preserved."
377
+ },
378
+ "preserveLocalDependencyProtocols": {
379
+ "type": "boolean",
380
+ "description": "Whether to preserve local dependency protocols (e.g. file references, or the `workspace:` protocol in package.json files) of local dependencies when updating them during versioning.",
381
+ "default": true
382
+ },
383
+ "versionActions": {
384
+ "type": "string",
385
+ "description": "The path to the version actions implementation to use for releasing all projects by default. This can also be overridden on the release group and project levels.",
386
+ "default": "@nx/js/src/release"
387
+ },
388
+ "versionActionsOptions": {
389
+ "type": "object",
390
+ "description": "The specific options that are defined by each version actions implementation. They will be passed to the version actions implementation when running a release.",
391
+ "additionalProperties": true
392
+ }
393
+ }
334
394
  }
335
395
  }
336
396
  }
@@ -1 +1 @@
1
- {"version":3,"file":"angular-json.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/adapter/angular-json.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,eAAO,MAAM,2BAA2B,2BAA2B,CAAC;AAEpE,eAAO,MAAM,mBAAmB,EAAE,UAmBjC,CAAC;AAEF,eAAe,mBAAmB,CAAC;AAEnC,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,MAAM,EACZ,8BAA8B,EAAE,OAAO,GACtC,OAAO,CAaT;AAED,wBAAgB,wBAAwB,YAQvC;AAQD,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,GAAG,sBAAsB,CA+B1D;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,OA+BjC;AAID,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,QAaX"}
1
+ {"version":3,"file":"angular-json.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/adapter/angular-json.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAiB,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,2BAA2B,2BAA2B,CAAC;AAcpE,eAAO,MAAM,mBAAmB,EAAE,UAIjC,CAAC;AAEF,eAAe,mBAAmB,CAAC;AAEnC,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,MAAM,EACZ,8BAA8B,EAAE,OAAO,GACtC,OAAO,CAaT;AAED,wBAAgB,wBAAwB,YAQvC;AAQD,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,GAAG,sBAAsB,CA+B1D;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,OA+BjC;AAID,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,QAaX"}
@@ -10,25 +10,21 @@ const fs_1 = require("fs");
10
10
  const path = require("path");
11
11
  const fileutils_1 = require("../utils/fileutils");
12
12
  exports.NX_ANGULAR_JSON_PLUGIN_NAME = 'nx-angular-json-plugin';
13
- exports.NxAngularJsonPlugin = {
14
- name: exports.NX_ANGULAR_JSON_PLUGIN_NAME,
15
- createNodes: [
16
- 'angular.json',
17
- (f, _, ctx) => ({
18
- projects: readAngularJson(ctx.workspaceRoot),
19
- }),
20
- ],
21
- createNodesV2: [
22
- 'angular.json',
23
- (f, _, ctx) => [
24
- [
25
- 'angular.json',
26
- {
27
- projects: readAngularJson(ctx.workspaceRoot),
28
- },
29
- ],
13
+ const createNodes = [
14
+ 'angular.json',
15
+ (f, _, ctx) => [
16
+ [
17
+ 'angular.json',
18
+ {
19
+ projects: readAngularJson(ctx.workspaceRoot),
20
+ },
30
21
  ],
31
22
  ],
23
+ ];
24
+ exports.NxAngularJsonPlugin = {
25
+ name: exports.NX_ANGULAR_JSON_PLUGIN_NAME,
26
+ createNodes,
27
+ createNodesV2: createNodes,
32
28
  };
33
29
  exports.default = exports.NxAngularJsonPlugin;
34
30
  function shouldMergeAngularProjects(root, includeProjectsFromAngularJson) {
@@ -127,7 +127,7 @@ async function initHandler(options) {
127
127
  if (selectedAgents && selectedAgents.length > 0) {
128
128
  const tree = new tree_1.FsTree(repoRoot, false);
129
129
  const aiAgentsCallback = await (0, set_up_ai_agents_1.setupAiAgentsGenerator)(tree, {
130
- directory: repoRoot,
130
+ directory: '.',
131
131
  writeNxCloudRules: options.nxCloud !== false,
132
132
  packageVersion: 'latest',
133
133
  agents: [...selectedAgents],
@@ -1 +1 @@
1
- {"version":3,"file":"changelog.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/changelog.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAkB1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAmBpD,OAAO,EAEL,SAAS,EAWV,MAAM,aAAa,CAAC;AAYrB,OAAO,EACL,cAAc,EASf,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,wBAAwB;IACvC,kBAAkB,CAAC,EAAE;QACnB,cAAc,EAAE,cAAc,CAAC;QAC/B,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;KACjC,CAAC;IACF,iBAAiB,CAAC,EAAE;QAClB,CAAC,WAAW,EAAE,MAAM,GAAG;YACrB,cAAc,EAAE,cAAc,CAAC;YAC/B,QAAQ,EAAE,MAAM,CAAC;YACjB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;SACjC,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAElE,eAAO,MAAM,0BAA0B,GAAI,MAAM,gBAAgB,oBACV,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAOnE,MAAM,gBAAgB,KACrB,OAAO,CAAC,wBAAwB,CAAC,CA+qBrC"}
1
+ {"version":3,"file":"changelog.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/changelog.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAkB1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAkBpD,OAAO,EAEL,SAAS,EAWV,MAAM,aAAa,CAAC;AAYrB,OAAO,EACL,cAAc,EASf,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,wBAAwB;IACvC,kBAAkB,CAAC,EAAE;QACnB,cAAc,EAAE,cAAc,CAAC;QAC/B,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;KACjC,CAAC;IACF,iBAAiB,CAAC,EAAE;QAClB,CAAC,WAAW,EAAE,MAAM,GAAG;YACrB,cAAc,EAAE,cAAc,CAAC;YAC/B,QAAQ,EAAE,MAAM,CAAC;YACjB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;SACjC,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAElE,eAAO,MAAM,0BAA0B,GAAI,MAAM,gBAAgB,oBACV,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAOnE,MAAM,gBAAgB,KACrB,OAAO,CAAC,wBAAwB,CAAC,CAyqBrC"}
@@ -20,7 +20,6 @@ const workspace_root_1 = require("../../utils/workspace-root");
20
20
  const config_1 = require("./config/config");
21
21
  const deep_merge_json_1 = require("./config/deep-merge-json");
22
22
  const filter_release_groups_1 = require("./config/filter-release-groups");
23
- const use_legacy_versioning_1 = require("./config/use-legacy-versioning");
24
23
  const version_plans_1 = require("./config/version-plans");
25
24
  const git_1 = require("./utils/git");
26
25
  const launch_editor_1 = require("./utils/launch-editor");
@@ -47,8 +46,7 @@ function createAPI(overrideReleaseConfig) {
47
46
  // Apply default configuration to any optional user configuration
48
47
  const { error: configError, nxReleaseConfig } = await (0, config_1.createNxReleaseConfig)(projectGraph, await (0, file_map_utils_1.createProjectFileMapUsingProjectGraph)(projectGraph), userProvidedReleaseConfig);
49
48
  if (configError) {
50
- const USE_LEGACY_VERSIONING = (0, use_legacy_versioning_1.shouldUseLegacyVersioning)(userProvidedReleaseConfig);
51
- return await (0, config_1.handleNxReleaseConfigError)(configError, USE_LEGACY_VERSIONING);
49
+ return await (0, config_1.handleNxReleaseConfigError)(configError);
52
50
  }
53
51
  // --print-config exits directly as it is not designed to be combined with any other programmatic operations
54
52
  if (args.printConfig) {
@@ -30,12 +30,6 @@ export type VersionOptions = NxReleaseArgs & GitOptions & VersionPlanArgs & Firs
30
30
  specifier?: string;
31
31
  preid?: string;
32
32
  stageChanges?: boolean;
33
- /**
34
- * @deprecated Use versionActionsOptionsOverrides instead.
35
- *
36
- * Using generatorOptionsOverrides is only valid when release.version.useLegacyVersioning is set to true.
37
- */
38
- generatorOptionsOverrides?: Record<string, unknown>;
39
33
  versionActionsOptionsOverrides?: Record<string, unknown>;
40
34
  };
41
35
  export type ChangelogOptions = NxReleaseArgs & GitOptions & VersionPlanArgs & FirstReleaseArgs & {
@@ -1 +1 @@
1
- {"version":3,"file":"command-object.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/command-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAY,MAAM,OAAO,CAAC;AAEtD,OAAO,EACL,WAAW,EACX,cAAc,EAQf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,UAAU;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7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AAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,aAAa,GACxC,gBAAgB,GAChB,uBAAuB,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAC7C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,aAAa,CA0Ed,CAAC"}
1
+ {"version":3,"file":"command-object.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/command-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAY,MAAM,OAAO,CAAC;AAEtD,OAAO,EACL,WAAW,EACX,cAAc,EAQf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IA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MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,aAAa,CA0Ed,CAAC"}
@@ -57,7 +57,7 @@ export declare function createNxReleaseConfig(projectGraph: ProjectGraph, projec
57
57
  error: null | CreateNxReleaseConfigError;
58
58
  nxReleaseConfig: NxReleaseConfig | null;
59
59
  }>;
60
- export declare function handleNxReleaseConfigError(error: CreateNxReleaseConfigError, useLegacyVersioning: boolean): Promise<never>;
60
+ export declare function handleNxReleaseConfigError(error: CreateNxReleaseConfigError): Promise<never>;
61
61
  /**
62
62
  * Full form of the createRelease config, with the provider, hostname, and apiBaseUrl resolved.
63
63
  */
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/config/config.ts"],"names":[],"mappings":"AAeA,OAAO,EAEL,mBAAmB,EAEnB,sBAAsB,EACtB,4BAA4B,EAG7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAc7E,KAAK,YAAY,CAAC,CAAC,IAAI,QAAQ,CAAC;KAC7B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACxE,CAAC,CAAC;AAEH,KAAK,oBAAoB,CAAC,CAAC,IAAI;KAC5B,CAAC,IAAI,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG;QACrC,MAAM,EAAE,YAAY,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAAC;KAChE;CACF,CAAC;AAEF,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS;QAAE,QAAQ,EAA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AAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -28,7 +28,6 @@ const gitlab_1 = require("../utils/remote-release-clients/gitlab");
28
28
  const resolve_changelog_renderer_1 = require("../utils/resolve-changelog-renderer");
29
29
  const resolve_nx_json_error_message_1 = require("../utils/resolve-nx-json-error-message");
30
30
  const conventional_commits_1 = require("./conventional-commits");
31
- const use_legacy_versioning_1 = require("./use-legacy-versioning");
32
31
  exports.IMPLICIT_DEFAULT_RELEASE_GROUP = '__default__';
33
32
  exports.DEFAULT_VERSION_ACTIONS_PATH = '@nx/js/src/release/version-actions';
34
33
  // Apply default configuration to any optional user configuration and handle known errors
@@ -60,7 +59,6 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
60
59
  nxReleaseConfig: null,
61
60
  };
62
61
  }
63
- const USE_LEGACY_VERSIONING = (0, use_legacy_versioning_1.shouldUseLegacyVersioning)(userConfig);
64
62
  const gitDefaults = {
65
63
  commit: false,
66
64
  commitMessage: 'chore(release): publish {version}',
@@ -113,16 +111,10 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
113
111
  : false,
114
112
  };
115
113
  const defaultFixedReleaseTagPattern = 'v{version}';
116
- /**
117
- * TODO(v22): in v22, make it so that this pattern is used by default when any custom groups are used
118
- */
119
114
  const defaultFixedGroupReleaseTagPattern = '{releaseGroupName}-v{version}';
120
115
  const defaultIndependentReleaseTagPattern = '{projectName}@{version}';
121
116
  const defaultReleaseTagPatternRequireSemver = true;
122
- /**
123
- * TODO(v22): in v22, set this to true by default
124
- */
125
- const defaultReleaseTagPatternStrictPreid = false;
117
+ const defaultReleaseTagPatternStrictPreid = true;
126
118
  const workspaceProjectsRelationship = userConfig.projectsRelationship || 'fixed';
127
119
  const defaultGeneratorOptions = {};
128
120
  if (userConfig.version?.conventionalCommits) {
@@ -191,30 +183,17 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
191
183
  : undefined,
192
184
  git: gitDefaults,
193
185
  version: {
194
- useLegacyVersioning: USE_LEGACY_VERSIONING,
195
186
  git: versionGitDefaults,
196
187
  conventionalCommits: userConfig.version?.conventionalCommits || false,
197
188
  preVersionCommand: userConfig.version?.preVersionCommand || '',
198
- ...(USE_LEGACY_VERSIONING
199
- ? {
200
- generator: '@nx/js:release-version',
201
- generatorOptions: defaultGeneratorOptions,
202
- }
203
- : {
204
- versionActions: exports.DEFAULT_VERSION_ACTIONS_PATH,
205
- versionActionsOptions: {},
206
- currentVersionResolver: defaultGeneratorOptions.currentVersionResolver,
207
- specifierSource: defaultGeneratorOptions.specifierSource,
208
- preserveLocalDependencyProtocols: userConfig.version
209
- ?.preserveLocalDependencyProtocols ?? true,
210
- // TODO(v22): flip default to true
211
- preserveMatchingDependencyRanges: userConfig.version
212
- ?.preserveMatchingDependencyRanges ?? false,
213
- logUnchangedProjects: userConfig.version
214
- ?.logUnchangedProjects ?? true,
215
- updateDependents: userConfig.version
216
- ?.updateDependents ?? 'auto',
217
- }),
189
+ versionActions: exports.DEFAULT_VERSION_ACTIONS_PATH,
190
+ versionActionsOptions: {},
191
+ currentVersionResolver: defaultGeneratorOptions.currentVersionResolver,
192
+ specifierSource: defaultGeneratorOptions.specifierSource,
193
+ preserveLocalDependencyProtocols: userConfig.version?.preserveLocalDependencyProtocols ?? true,
194
+ preserveMatchingDependencyRanges: userConfig.version?.preserveMatchingDependencyRanges ?? true,
195
+ logUnchangedProjects: userConfig.version?.logUnchangedProjects ?? true,
196
+ updateDependents: userConfig.version?.updateDependents ?? 'auto',
218
197
  },
219
198
  changelog: {
220
199
  git: changelogGitDefaults,
@@ -278,19 +257,12 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
278
257
  groupPreVersionCommand: '',
279
258
  }
280
259
  : undefined,
281
- version: USE_LEGACY_VERSIONING
282
- ? {
283
- conventionalCommits: false,
284
- generator: '@nx/js:release-version',
285
- generatorOptions: {},
286
- groupPreVersionCommand: '',
287
- }
288
- : {
289
- conventionalCommits: false,
290
- versionActions: exports.DEFAULT_VERSION_ACTIONS_PATH,
291
- versionActionsOptions: {},
292
- groupPreVersionCommand: '',
293
- },
260
+ version: {
261
+ conventionalCommits: false,
262
+ versionActions: exports.DEFAULT_VERSION_ACTIONS_PATH,
263
+ versionActionsOptions: {},
264
+ groupPreVersionCommand: '',
265
+ },
294
266
  changelog: {
295
267
  createRelease: false,
296
268
  entryWhenNoChanges: 'This was a version bump only for {projectName} to align it with other projects, there were no code changes.',
@@ -361,43 +333,19 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
361
333
  delete rootVersionWithoutGlobalOptions.preVersionCommand;
362
334
  // Apply conventionalCommits shorthand to the final group defaults if explicitly configured in the original user config
363
335
  if (userConfig.version?.conventionalCommits === true) {
364
- if (USE_LEGACY_VERSIONING) {
365
- rootVersionWithoutGlobalOptions.generatorOptions = {
366
- ...rootVersionWithoutGlobalOptions.generatorOptions,
367
- currentVersionResolver: 'git-tag',
368
- specifierSource: 'conventional-commits',
369
- };
370
- }
371
- else {
372
- rootVersionWithoutGlobalOptions.currentVersionResolver = 'git-tag';
373
- rootVersionWithoutGlobalOptions.specifierSource = 'conventional-commits';
374
- }
336
+ rootVersionWithoutGlobalOptions.currentVersionResolver = 'git-tag';
337
+ rootVersionWithoutGlobalOptions.specifierSource = 'conventional-commits';
375
338
  }
376
339
  if (userConfig.version?.conventionalCommits === false) {
377
- delete rootVersionWithoutGlobalOptions.generatorOptions
378
- ?.currentVersionResolver;
379
- delete rootVersionWithoutGlobalOptions.generatorOptions?.specifierSource;
380
- delete rootVersionWithoutGlobalOptions
381
- .currentVersionResolver;
382
- delete rootVersionWithoutGlobalOptions
383
- .specifierSource;
340
+ delete rootVersionWithoutGlobalOptions.currentVersionResolver;
341
+ delete rootVersionWithoutGlobalOptions.specifierSource;
384
342
  }
385
343
  // Apply versionPlans shorthand to the final group defaults if explicitly configured in the original user config
386
344
  if (userConfig.versionPlans) {
387
- if (USE_LEGACY_VERSIONING) {
388
- rootVersionWithoutGlobalOptions.generatorOptions = {
389
- ...rootVersionWithoutGlobalOptions.generatorOptions,
390
- specifierSource: 'version-plans',
391
- };
392
- }
393
- else {
394
- rootVersionWithoutGlobalOptions.specifierSource = 'version-plans';
395
- }
345
+ rootVersionWithoutGlobalOptions.specifierSource = 'version-plans';
396
346
  }
397
347
  if (userConfig.versionPlans === false) {
398
- delete rootVersionWithoutGlobalOptions.generatorOptions.specifierSource;
399
- delete rootVersionWithoutGlobalOptions
400
- .specifierSource;
348
+ delete rootVersionWithoutGlobalOptions.specifierSource;
401
349
  }
402
350
  const rootDockerWithoutGlobalOptions = { ...rootDockerConfig };
403
351
  delete rootDockerWithoutGlobalOptions.preVersionCommand;
@@ -463,6 +411,14 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
463
411
  };
464
412
  }
465
413
  }
414
+ else {
415
+ releaseGroup.releaseTagPattern =
416
+ releaseGroup.projectsRelationship === 'independent'
417
+ ? WORKSPACE_DEFAULTS.releaseTagPattern?.includes('{projectName}')
418
+ ? WORKSPACE_DEFAULTS.releaseTagPattern
419
+ : defaultIndependentReleaseTagPattern
420
+ : userConfig?.releaseTagPattern ?? defaultFixedGroupReleaseTagPattern;
421
+ }
466
422
  for (const project of matchingProjects) {
467
423
  if (alreadyMatchedProjects.has(project)) {
468
424
  return {
@@ -545,52 +501,21 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
545
501
  }
546
502
  // Apply conventionalCommits shorthand to the final group if explicitly configured in the original group
547
503
  if (releaseGroup.version?.conventionalCommits === true) {
548
- if (USE_LEGACY_VERSIONING) {
549
- finalReleaseGroup.version.generatorOptions = {
550
- ...finalReleaseGroup.version.generatorOptions,
551
- currentVersionResolver: 'git-tag',
552
- specifierSource: 'conventional-commits',
553
- };
554
- }
555
- else {
556
- finalReleaseGroup.version.currentVersionResolver = 'git-tag';
557
- finalReleaseGroup.version.specifierSource = 'conventional-commits';
558
- }
504
+ finalReleaseGroup.version.currentVersionResolver = 'git-tag';
505
+ finalReleaseGroup.version.specifierSource = 'conventional-commits';
559
506
  }
560
507
  if (releaseGroup.version?.conventionalCommits === false &&
561
508
  releaseGroupName !== exports.IMPLICIT_DEFAULT_RELEASE_GROUP) {
562
- if (USE_LEGACY_VERSIONING) {
563
- delete finalReleaseGroup.version.generatorOptions
564
- ?.currentVersionResolver;
565
- delete finalReleaseGroup.version.generatorOptions?.specifierSource;
566
- }
567
- delete finalReleaseGroup.version
568
- .currentVersionResolver;
569
- delete finalReleaseGroup.version
570
- .specifierSource;
509
+ delete finalReleaseGroup.version.currentVersionResolver;
510
+ delete finalReleaseGroup.version.specifierSource;
571
511
  }
572
512
  // Apply versionPlans shorthand to the final group if explicitly configured in the original group
573
513
  if (releaseGroup.versionPlans) {
574
- if (USE_LEGACY_VERSIONING) {
575
- finalReleaseGroup.version = {
576
- ...finalReleaseGroup.version,
577
- generatorOptions: {
578
- ...finalReleaseGroup.version?.generatorOptions,
579
- specifierSource: 'version-plans',
580
- },
581
- };
582
- }
583
- else {
584
- finalReleaseGroup.version.specifierSource = 'version-plans';
585
- }
514
+ finalReleaseGroup.version.specifierSource = 'version-plans';
586
515
  }
587
516
  if (releaseGroup.versionPlans === false &&
588
517
  releaseGroupName !== exports.IMPLICIT_DEFAULT_RELEASE_GROUP) {
589
- if (USE_LEGACY_VERSIONING) {
590
- delete finalReleaseGroup.version.generatorOptions?.specifierSource;
591
- }
592
- delete finalReleaseGroup.version
593
- .specifierSource;
518
+ delete finalReleaseGroup.version.specifierSource;
594
519
  }
595
520
  releaseGroups[releaseGroupName] = finalReleaseGroup;
596
521
  }
@@ -728,7 +653,7 @@ function fillUnspecifiedConventionalCommitsProperties(config) {
728
653
  types,
729
654
  };
730
655
  }
731
- async function handleNxReleaseConfigError(error, useLegacyVersioning) {
656
+ async function handleNxReleaseConfigError(error) {
732
657
  const linkMessage = `\nRead more about Nx Release at https://nx.dev/features/manage-releases.`;
733
658
  switch (error.code) {
734
659
  case 'PROJECTS_AND_GROUPS_DEFINED':
@@ -786,11 +711,8 @@ async function handleNxReleaseConfigError(error, useLegacyVersioning) {
786
711
  const nxJsonMessage = await (0, resolve_nx_json_error_message_1.resolveNxJsonConfigErrorMessage)([
787
712
  'release',
788
713
  ]);
789
- const text = useLegacyVersioning
790
- ? '"version.generatorOptions"'
791
- : 'configuration options';
792
714
  output_1.output.error({
793
- title: `You have configured both the shorthand "version.conventionalCommits" and one or more of the related ${text} that it sets for you. Please use one or the other:`,
715
+ title: `You have configured both the shorthand "version.conventionalCommits" and one or more of the related configuration options that it sets for you. Please use one or the other:`,
794
716
  bodyLines: [nxJsonMessage, linkMessage],
795
717
  });
796
718
  }
@@ -943,30 +865,16 @@ function deepMergeDefaults(defaultConfigs, userConfig) {
943
865
  function hasInvalidConventionalCommitsConfig(userConfig) {
944
866
  // at the root
945
867
  if (userConfig.version?.conventionalCommits === true &&
946
- // v2 config - directly on version config
947
- (userConfig.version
948
- ?.currentVersionResolver ||
949
- userConfig.version?.specifierSource ||
950
- // Legacy config - on generatorOptions
951
- userConfig.version
952
- ?.generatorOptions?.currentVersionResolver ||
953
- userConfig.version
954
- ?.generatorOptions?.specifierSource)) {
868
+ (userConfig.version?.currentVersionResolver ||
869
+ userConfig.version?.specifierSource)) {
955
870
  return true;
956
871
  }
957
872
  // within any groups
958
873
  if (userConfig.groups) {
959
874
  for (const group of Object.values(userConfig.groups)) {
960
875
  if (group.version?.conventionalCommits === true &&
961
- // v2 config - directly on version config
962
- (group.version
963
- ?.currentVersionResolver ||
964
- group.version?.specifierSource ||
965
- // Legacy config - on generatorOptions
966
- group.version
967
- ?.generatorOptions?.currentVersionResolver ||
968
- group.version
969
- ?.generatorOptions?.specifierSource)) {
876
+ (group.version?.currentVersionResolver ||
877
+ group.version?.specifierSource)) {
970
878
  return true;
971
879
  }
972
880
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plan-check.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/plan-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAU1E,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAgBjE,eAAO,MAAM,0BAA0B,GAAI,MAAM,gBAAgB,oBACV,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAC9B,MAAM,WAAW,KAAG,OAAO,CAAC,MAAM,CAAC,CA+N3E"}
1
+ {"version":3,"file":"plan-check.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/plan-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAU1E,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAejE,eAAO,MAAM,0BAA0B,GAAI,MAAM,gBAAgB,oBACV,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAC9B,MAAM,WAAW,KAAG,OAAO,CAAC,MAAM,CAAC,CAyN3E"}
@@ -12,7 +12,6 @@ const output_1 = require("../../utils/output");
12
12
  const config_1 = require("./config/config");
13
13
  const deep_merge_json_1 = require("./config/deep-merge-json");
14
14
  const filter_release_groups_1 = require("./config/filter-release-groups");
15
- const use_legacy_versioning_1 = require("./config/use-legacy-versioning");
16
15
  const version_plans_1 = require("./config/version-plans");
17
16
  const get_touched_projects_for_group_1 = require("./utils/get-touched-projects-for-group");
18
17
  const print_config_1 = require("./utils/print-config");
@@ -26,8 +25,7 @@ function createAPI(overrideReleaseConfig) {
26
25
  // Apply default configuration to any optional user configuration
27
26
  const { error: configError, nxReleaseConfig } = await (0, config_1.createNxReleaseConfig)(projectGraph, await (0, file_map_utils_1.createProjectFileMapUsingProjectGraph)(projectGraph), userProvidedReleaseConfig);
28
27
  if (configError) {
29
- const USE_LEGACY_VERSIONING = (0, use_legacy_versioning_1.shouldUseLegacyVersioning)(userProvidedReleaseConfig);
30
- return await (0, config_1.handleNxReleaseConfigError)(configError, USE_LEGACY_VERSIONING);
28
+ return await (0, config_1.handleNxReleaseConfigError)(configError);
31
29
  }
32
30
  // --print-config exits directly as it is not designed to be combined with any other programmatic operations
33
31
  if (args.printConfig) {
@@ -1 +1 @@
1
- {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/plan.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAU1E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAgB/C,eAAO,MAAM,qBAAqB,GAAI,MAAM,WAAW,oBACA,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAEnE,MAAM,WAAW,KAChB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAqO5B"}
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/plan.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAU1E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAe/C,eAAO,MAAM,qBAAqB,GAAI,MAAM,WAAW,oBACA,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAEnE,MAAM,WAAW,KAChB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CA+N5B"}
@@ -18,7 +18,6 @@ const output_1 = require("../../utils/output");
18
18
  const config_1 = require("./config/config");
19
19
  const deep_merge_json_1 = require("./config/deep-merge-json");
20
20
  const filter_release_groups_1 = require("./config/filter-release-groups");
21
- const use_legacy_versioning_1 = require("./config/use-legacy-versioning");
22
21
  const version_plans_1 = require("./config/version-plans");
23
22
  const generate_version_plan_content_1 = require("./utils/generate-version-plan-content");
24
23
  const get_touched_projects_for_group_1 = require("./utils/get-touched-projects-for-group");
@@ -35,8 +34,7 @@ function createAPI(overrideReleaseConfig) {
35
34
  // Apply default configuration to any optional user configuration
36
35
  const { error: configError, nxReleaseConfig } = await (0, config_1.createNxReleaseConfig)(projectGraph, await (0, file_map_utils_1.createProjectFileMapUsingProjectGraph)(projectGraph), userProvidedReleaseConfig);
37
36
  if (configError) {
38
- const USE_LEGACY_VERSIONING = (0, use_legacy_versioning_1.shouldUseLegacyVersioning)(userProvidedReleaseConfig);
39
- return await (0, config_1.handleNxReleaseConfigError)(configError, USE_LEGACY_VERSIONING);
37
+ return await (0, config_1.handleNxReleaseConfigError)(configError);
40
38
  }
41
39
  // --print-config exits directly as it is not designed to be combined with any other programmatic operations
42
40
  if (args.printConfig) {
@@ -1 +1 @@
1
- {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/publish.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAEvB,MAAM,sBAAsB,CAAC;AAsB9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAUlD,MAAM,WAAW,qBAAqB;IACpC,CAAC,WAAW,EAAE,MAAM,GAAG;QACrB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,eAAO,MAAM,wBAAwB,GAAI,MAAM,cAAc,oBAWzD,CAAC;AAEL,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAOnE,MAAM,cAAc,KACnB,OAAO,CAAC,qBAAqB,CAAC,CAwHlC"}
1
+ {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/publish.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAEvB,MAAM,sBAAsB,CAAC;AAsB9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AASlD,MAAM,WAAW,qBAAqB;IACpC,CAAC,WAAW,EAAE,MAAM,GAAG;QACrB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,eAAO,MAAM,wBAAwB,GAAI,MAAM,cAAc,oBAWzD,CAAC;AAEL,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAOnE,MAAM,cAAc,KACnB,OAAO,CAAC,qBAAqB,CAAC,CAkHlC"}
@@ -17,7 +17,6 @@ const graph_1 = require("../graph/graph");
17
17
  const config_1 = require("./config/config");
18
18
  const deep_merge_json_1 = require("./config/deep-merge-json");
19
19
  const filter_release_groups_1 = require("./config/filter-release-groups");
20
- const use_legacy_versioning_1 = require("./config/use-legacy-versioning");
21
20
  const print_config_1 = require("./utils/print-config");
22
21
  const releasePublishCLIHandler = (args) => (0, handle_errors_1.handleErrors)(args.verbose, async () => {
23
22
  const publishProjectsResult = await createAPI({})(args);
@@ -48,8 +47,7 @@ function createAPI(overrideReleaseConfig) {
48
47
  // Apply default configuration to any optional user configuration
49
48
  const { error: configError, nxReleaseConfig } = await (0, config_1.createNxReleaseConfig)(projectGraph, await (0, file_map_utils_1.createProjectFileMapUsingProjectGraph)(projectGraph), userProvidedReleaseConfig);
50
49
  if (configError) {
51
- const USE_LEGACY_VERSIONING = (0, use_legacy_versioning_1.shouldUseLegacyVersioning)(userProvidedReleaseConfig);
52
- return await (0, config_1.handleNxReleaseConfigError)(configError, USE_LEGACY_VERSIONING);
50
+ return await (0, config_1.handleNxReleaseConfigError)(configError);
53
51
  }
54
52
  // --print-config exits directly as it is not designed to be combined with any other programmatic operations
55
53
  if (args.printConfig) {
@@ -1 +1 @@
1
- {"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/release.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAM1E,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA6BlE,OAAO,EACL,sBAAsB,EAEvB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,iBAAiB,GAAI,MAAM,cAAc,oBACC,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAMnE,MAAM,cAAc,KACnB,OAAO,CAAC,sBAAsB,GAAG,MAAM,CAAC,CAkX5C"}
1
+ {"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/release/release.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAc,MAAM,sBAAsB,CAAC;AAM1E,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA4BlE,OAAO,EACL,sBAAsB,EAEvB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,iBAAiB,GAAI,MAAM,cAAc,oBACC,CAAC;AAExD,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,sBAAsB,IAMnE,MAAM,cAAc,KACnB,OAAO,CAAC,sBAAsB,GAAG,MAAM,CAAC,CA4W5C"}
@@ -13,7 +13,6 @@ const changelog_1 = require("./changelog");
13
13
  const config_1 = require("./config/config");
14
14
  const deep_merge_json_1 = require("./config/deep-merge-json");
15
15
  const filter_release_groups_1 = require("./config/filter-release-groups");
16
- const use_legacy_versioning_1 = require("./config/use-legacy-versioning");
17
16
  const version_plans_1 = require("./config/version-plans");
18
17
  const publish_1 = require("./publish");
19
18
  const git_1 = require("./utils/git");
@@ -49,8 +48,7 @@ function createAPI(overrideReleaseConfig) {
49
48
  // Apply default configuration to any optional user configuration
50
49
  const { error: configError, nxReleaseConfig } = await (0, config_1.createNxReleaseConfig)(projectGraph, await (0, file_map_utils_1.createProjectFileMapUsingProjectGraph)(projectGraph), userProvidedReleaseConfig);
51
50
  if (configError) {
52
- const USE_LEGACY_VERSIONING = (0, use_legacy_versioning_1.shouldUseLegacyVersioning)(userProvidedReleaseConfig);
53
- return await (0, config_1.handleNxReleaseConfigError)(configError, USE_LEGACY_VERSIONING);
51
+ return await (0, config_1.handleNxReleaseConfigError)(configError);
54
52
  }
55
53
  // --print-config exits directly as it is not designed to be combined with any other programmatic operations
56
54
  if (args.printConfig) {