nx 22.2.0-canary.20251121-9a6c7ad → 22.2.0-canary.20251125-7e00ec4

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 (52) hide show
  1. package/executors.json +16 -16
  2. package/generators.json +13 -13
  3. package/migrations.json +143 -143
  4. package/package.json +14 -11
  5. package/presets/npm.json +4 -4
  6. package/release/changelog-renderer/index.d.ts +1 -0
  7. package/release/changelog-renderer/index.d.ts.map +1 -1
  8. package/release/changelog-renderer/index.js +12 -12
  9. package/schemas/nx-schema.json +1285 -1285
  10. package/schemas/project-schema.json +359 -359
  11. package/schemas/workspace-schema.json +165 -165
  12. package/src/ai/constants.d.ts +6 -1
  13. package/src/ai/constants.d.ts.map +1 -1
  14. package/src/ai/constants.js +14 -3
  15. package/src/ai/set-up-ai-agents/schema.json +31 -31
  16. package/src/ai/set-up-ai-agents/set-up-ai-agents.d.ts.map +1 -1
  17. package/src/ai/set-up-ai-agents/set-up-ai-agents.js +41 -7
  18. package/src/command-line/release/utils/resolve-semver-specifier.d.ts +1 -1
  19. package/src/command-line/release/utils/resolve-semver-specifier.d.ts.map +1 -1
  20. package/src/command-line/release/utils/resolve-semver-specifier.js +3 -3
  21. package/src/command-line/release/utils/shared.d.ts +2 -1
  22. package/src/command-line/release/utils/shared.d.ts.map +1 -1
  23. package/src/command-line/release/utils/shared.js +27 -1
  24. package/src/command-line/release/version/derive-specifier-from-conventional-commits.js +1 -1
  25. package/src/command-line/report/report.d.ts +4 -0
  26. package/src/command-line/report/report.d.ts.map +1 -1
  27. package/src/command-line/report/report.js +72 -1
  28. package/src/core/graph/main.js +1 -1
  29. package/src/daemon/cache.d.ts +2 -1
  30. package/src/daemon/cache.d.ts.map +1 -1
  31. package/src/daemon/cache.js +10 -26
  32. package/src/daemon/client/client.d.ts +2 -0
  33. package/src/daemon/client/client.d.ts.map +1 -1
  34. package/src/daemon/client/client.js +53 -26
  35. package/src/daemon/is-nx-version-mismatch.d.ts +3 -0
  36. package/src/daemon/is-nx-version-mismatch.d.ts.map +1 -0
  37. package/src/daemon/is-nx-version-mismatch.js +24 -0
  38. package/src/daemon/server/server.d.ts.map +1 -1
  39. package/src/daemon/server/server.js +7 -18
  40. package/src/daemon/tmp-dir.d.ts.map +1 -1
  41. package/src/daemon/tmp-dir.js +1 -0
  42. package/src/executors/noop/schema.json +8 -8
  43. package/src/executors/run-commands/schema.json +187 -187
  44. package/src/executors/run-script/schema.json +25 -25
  45. package/src/nx-cloud/generators/connect-to-nx-cloud/schema.json +38 -38
  46. package/src/tasks-runner/pseudo-terminal.js +1 -1
  47. package/src/tasks-runner/task-orchestrator.d.ts +1 -0
  48. package/src/tasks-runner/task-orchestrator.d.ts.map +1 -1
  49. package/src/tasks-runner/task-orchestrator.js +22 -5
  50. package/src/utils/package-manager.d.ts +1 -0
  51. package/src/utils/package-manager.d.ts.map +1 -1
  52. package/src/utils/package-manager.js +4 -0
package/executors.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
- "executors": {
3
- "noop": {
4
- "implementation": "./src/executors/noop/noop.impl",
5
- "schema": "./src/executors/noop/schema.json",
6
- "description": "An executor that does nothing"
7
- },
8
- "run-commands": {
9
- "implementation": "./src/executors/run-commands/run-commands.impl",
10
- "schema": "./src/executors/run-commands/schema.json",
11
- "description": "Run any custom commands with Nx."
12
- },
13
- "run-script": {
14
- "implementation": "./src/executors/run-script/run-script.impl",
15
- "schema": "./src/executors/run-script/schema.json",
16
- "description": "Run an NPM script using Nx."
17
- }
2
+ "executors": {
3
+ "noop": {
4
+ "implementation": "./src/executors/noop/noop.impl",
5
+ "schema": "./src/executors/noop/schema.json",
6
+ "description": "An executor that does nothing"
7
+ },
8
+ "run-commands": {
9
+ "implementation": "./src/executors/run-commands/run-commands.impl",
10
+ "schema": "./src/executors/run-commands/schema.json",
11
+ "description": "Run any custom commands with Nx."
12
+ },
13
+ "run-script": {
14
+ "implementation": "./src/executors/run-script/run-script.impl",
15
+ "schema": "./src/executors/run-script/schema.json",
16
+ "description": "Run an NPM script using Nx."
18
17
  }
18
+ }
19
19
  }
package/generators.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
- "generators": {
3
- "connect-to-nx-cloud": {
4
- "factory": "./src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud",
5
- "schema": "./src/nx-cloud/generators/connect-to-nx-cloud/schema.json",
6
- "description": "Connect a workspace to Nx Cloud",
7
- "x-hidden": true
8
- },
9
- "set-up-ai-agents": {
10
- "factory": "./src/ai/set-up-ai-agents/set-up-ai-agents",
11
- "schema": "./src/ai/set-up-ai-agents/schema.json",
12
- "description": "Sets up the Nx MCP & rule files for common AI Agents",
13
- "hidden": true
14
- }
2
+ "generators": {
3
+ "connect-to-nx-cloud": {
4
+ "factory": "./src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud",
5
+ "schema": "./src/nx-cloud/generators/connect-to-nx-cloud/schema.json",
6
+ "description": "Connect a workspace to Nx Cloud",
7
+ "x-hidden": true
8
+ },
9
+ "set-up-ai-agents": {
10
+ "factory": "./src/ai/set-up-ai-agents/set-up-ai-agents",
11
+ "schema": "./src/ai/set-up-ai-agents/schema.json",
12
+ "description": "Sets up the Nx MCP & rule files for common AI Agents",
13
+ "hidden": true
15
14
  }
15
+ }
16
16
  }
package/migrations.json CHANGED
@@ -1,146 +1,146 @@
1
1
  {
2
- "generators": {
3
- "16.0.0-remove-nrwl-cli": {
4
- "cli": "nx",
5
- "version": "16.0.0-beta.0",
6
- "description": "Remove @nrwl/cli.",
7
- "implementation": "./src/migrations/update-16-0-0/remove-nrwl-cli"
8
- },
9
- "16.0.0-tokens-for-depends-on": {
10
- "cli": "nx",
11
- "version": "16.0.0-beta.9",
12
- "description": "Replace `dependsOn.projects` and `inputs` definitions with new configuration format.",
13
- "implementation": "./src/migrations/update-16-0-0/update-depends-on-to-tokens"
14
- },
15
- "16.0.0-update-nx-cloud-runner": {
16
- "cli": "nx",
17
- "version": "16.0.0-beta.0",
18
- "description": "Replace @nrwl/nx-cloud with nx-cloud",
19
- "implementation": "./src/migrations/update-16-0-0/update-nx-cloud-runner"
20
- },
21
- "16.2.0-remove-output-path-from-run-commands": {
22
- "cli": "nx",
23
- "version": "16.2.0-beta.0",
24
- "description": "Remove outputPath from run commands",
25
- "implementation": "./src/migrations/update-16-2-0/remove-run-commands-output-path"
26
- },
27
- "16.6.0-prefix-outputs": {
28
- "cli": "nx",
29
- "version": "16.6.0-beta.6",
30
- "description": "Prefix outputs with {workspaceRoot}/{projectRoot} if needed",
31
- "implementation": "./src/migrations/update-15-0-0/prefix-outputs"
32
- },
33
- "16.8.0-escape-dollar-sign-env": {
34
- "cli": "nx",
35
- "version": "16.8.0-beta.3",
36
- "description": "Escape $ in env variables",
37
- "implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables",
38
- "x-repair-skip": true
39
- },
40
- "17.0.0-move-cache-directory": {
41
- "cli": "nx",
42
- "version": "17.0.0-beta.1",
43
- "description": "Updates the default cache directory to .nx/cache",
44
- "implementation": "./src/migrations/update-17-0-0/move-cache-directory"
45
- },
46
- "17.0.0-use-minimal-config-for-tasks-runner-options": {
47
- "cli": "nx",
48
- "version": "17.0.0-beta.3",
49
- "description": "Use minimal config for tasksRunnerOptions",
50
- "implementation": "./src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options"
51
- },
52
- "rm-default-collection-npm-scope": {
53
- "version": "17.0.0-rc.1",
54
- "description": "Migration for v17.0.0-rc.1",
55
- "implementation": "./src/migrations/update-17-0-0/rm-default-collection-npm-scope"
56
- },
57
- "17.3.0-update-nx-wrapper": {
58
- "cli": "nx",
59
- "version": "17.3.0-beta.6",
60
- "description": "Updates the nx wrapper.",
61
- "implementation": "./src/migrations/update-17-3-0/update-nxw"
62
- },
63
- "18.0.0-disable-adding-plugins-for-existing-workspaces": {
64
- "cli": "nx",
65
- "version": "18.0.0-beta.2",
66
- "description": "Updates nx.json to disabled adding plugins when generating projects in an existing Nx workspace",
67
- "implementation": "./src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces",
68
- "x-repair-skip": true
69
- },
70
- "move-default-base-to-nx-json-root": {
71
- "version": "18.1.0-beta.3",
72
- "description": "Moves affected.defaultBase to defaultBase in `nx.json`",
73
- "implementation": "./src/migrations/update-17-2-0/move-default-base"
74
- },
75
- "19-2-0-move-graph-cache-directory": {
76
- "cli": "nx",
77
- "version": "19.2.0-beta.2",
78
- "description": "Updates the default workspace data directory to .nx/workspace-data",
79
- "implementation": "./src/migrations/update-19-2-0/move-workspace-data-directory"
80
- },
81
- "19-2-2-update-nx-wrapper": {
82
- "cli": "nx",
83
- "version": "19.2.2-beta.0",
84
- "description": "Updates the nx wrapper.",
85
- "implementation": "./src/migrations/update-17-3-0/update-nxw"
86
- },
87
- "19-2-4-set-project-name": {
88
- "version": "19.2.4-beta.0",
89
- "description": "Set project name in nx.json explicitly",
90
- "implementation": "./src/migrations/update-19-2-4/set-project-name",
91
- "x-repair-skip": true
92
- },
93
- "move-use-daemon-process": {
94
- "version": "20.0.0-beta.7",
95
- "description": "Migration for v20.0.0-beta.7",
96
- "implementation": "./src/migrations/update-20-0-0/move-use-daemon-process"
97
- },
98
- "use-legacy-cache": {
99
- "version": "20.0.1",
100
- "description": "Set `useLegacyCache` to true for migrating workspaces",
101
- "implementation": "./src/migrations/update-20-0-1/use-legacy-cache",
102
- "x-repair-skip": true
103
- },
104
- "remove-legacy-cache": {
105
- "version": "21.0.0-beta.8",
106
- "description": "Removes the legacy cache configuration from nx.json",
107
- "implementation": "./src/migrations/update-21-0-0/remove-legacy-cache"
108
- },
109
- "remove-custom-tasks-runner": {
110
- "version": "21.0.0-beta.8",
111
- "description": "Removes the legacy cache configuration from nx.json",
112
- "implementation": "./src/migrations/update-21-0-0/remove-custom-tasks-runner"
113
- },
114
- "release-version-config-changes": {
115
- "version": "21.0.0-beta.11",
116
- "description": "Updates release version config based on the breaking changes in Nx v21",
117
- "implementation": "./src/migrations/update-21-0-0/release-version-config-changes"
118
- },
119
- "release-changelog-config-changes": {
120
- "version": "21.0.0-beta.11",
121
- "description": "Updates release changelog config based on the breaking changes in Nx v21",
122
- "implementation": "./src/migrations/update-21-0-0/release-changelog-config-changes"
123
- },
124
- "21-1-0-add-ignore-entries-for-nx-rule-files": {
125
- "version": "21.1.0-beta.2",
126
- "description": "Adds **/nx-rules.mdc and **/nx.instructions.md to .gitignore if not present",
127
- "implementation": "./src/migrations/update-21-1-0/add-gitignore-entry"
128
- },
129
- "22-0-0-release-version-config-changes": {
130
- "version": "22.0.0-beta.1",
131
- "description": "Updates release version config based on the breaking changes in Nx v22",
132
- "implementation": "./src/migrations/update-22-0-0/release-version-config-changes"
133
- },
134
- "22-0-0-consolidate-release-tag-config": {
135
- "version": "22.0.0-beta.2",
136
- "description": "Consolidates releaseTag* options into nested releaseTag object structure",
137
- "implementation": "./src/migrations/update-22-0-0/consolidate-release-tag-config"
138
- },
139
- "22-1-0-update-nx-wrapper": {
140
- "cli": "nx",
141
- "version": "22.1.0-beta.5",
142
- "description": "Updates the nx wrapper.",
143
- "implementation": "./src/migrations/update-22-1-0/update-nx-wrapper"
144
- }
2
+ "generators": {
3
+ "16.0.0-remove-nrwl-cli": {
4
+ "cli": "nx",
5
+ "version": "16.0.0-beta.0",
6
+ "description": "Remove @nrwl/cli.",
7
+ "implementation": "./src/migrations/update-16-0-0/remove-nrwl-cli"
8
+ },
9
+ "16.0.0-tokens-for-depends-on": {
10
+ "cli": "nx",
11
+ "version": "16.0.0-beta.9",
12
+ "description": "Replace `dependsOn.projects` and `inputs` definitions with new configuration format.",
13
+ "implementation": "./src/migrations/update-16-0-0/update-depends-on-to-tokens"
14
+ },
15
+ "16.0.0-update-nx-cloud-runner": {
16
+ "cli": "nx",
17
+ "version": "16.0.0-beta.0",
18
+ "description": "Replace @nrwl/nx-cloud with nx-cloud",
19
+ "implementation": "./src/migrations/update-16-0-0/update-nx-cloud-runner"
20
+ },
21
+ "16.2.0-remove-output-path-from-run-commands": {
22
+ "cli": "nx",
23
+ "version": "16.2.0-beta.0",
24
+ "description": "Remove outputPath from run commands",
25
+ "implementation": "./src/migrations/update-16-2-0/remove-run-commands-output-path"
26
+ },
27
+ "16.6.0-prefix-outputs": {
28
+ "cli": "nx",
29
+ "version": "16.6.0-beta.6",
30
+ "description": "Prefix outputs with {workspaceRoot}/{projectRoot} if needed",
31
+ "implementation": "./src/migrations/update-15-0-0/prefix-outputs"
32
+ },
33
+ "16.8.0-escape-dollar-sign-env": {
34
+ "cli": "nx",
35
+ "version": "16.8.0-beta.3",
36
+ "description": "Escape $ in env variables",
37
+ "implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables",
38
+ "x-repair-skip": true
39
+ },
40
+ "17.0.0-move-cache-directory": {
41
+ "cli": "nx",
42
+ "version": "17.0.0-beta.1",
43
+ "description": "Updates the default cache directory to .nx/cache",
44
+ "implementation": "./src/migrations/update-17-0-0/move-cache-directory"
45
+ },
46
+ "17.0.0-use-minimal-config-for-tasks-runner-options": {
47
+ "cli": "nx",
48
+ "version": "17.0.0-beta.3",
49
+ "description": "Use minimal config for tasksRunnerOptions",
50
+ "implementation": "./src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options"
51
+ },
52
+ "rm-default-collection-npm-scope": {
53
+ "version": "17.0.0-rc.1",
54
+ "description": "Migration for v17.0.0-rc.1",
55
+ "implementation": "./src/migrations/update-17-0-0/rm-default-collection-npm-scope"
56
+ },
57
+ "17.3.0-update-nx-wrapper": {
58
+ "cli": "nx",
59
+ "version": "17.3.0-beta.6",
60
+ "description": "Updates the nx wrapper.",
61
+ "implementation": "./src/migrations/update-17-3-0/update-nxw"
62
+ },
63
+ "18.0.0-disable-adding-plugins-for-existing-workspaces": {
64
+ "cli": "nx",
65
+ "version": "18.0.0-beta.2",
66
+ "description": "Updates nx.json to disabled adding plugins when generating projects in an existing Nx workspace",
67
+ "implementation": "./src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces",
68
+ "x-repair-skip": true
69
+ },
70
+ "move-default-base-to-nx-json-root": {
71
+ "version": "18.1.0-beta.3",
72
+ "description": "Moves affected.defaultBase to defaultBase in `nx.json`",
73
+ "implementation": "./src/migrations/update-17-2-0/move-default-base"
74
+ },
75
+ "19-2-0-move-graph-cache-directory": {
76
+ "cli": "nx",
77
+ "version": "19.2.0-beta.2",
78
+ "description": "Updates the default workspace data directory to .nx/workspace-data",
79
+ "implementation": "./src/migrations/update-19-2-0/move-workspace-data-directory"
80
+ },
81
+ "19-2-2-update-nx-wrapper": {
82
+ "cli": "nx",
83
+ "version": "19.2.2-beta.0",
84
+ "description": "Updates the nx wrapper.",
85
+ "implementation": "./src/migrations/update-17-3-0/update-nxw"
86
+ },
87
+ "19-2-4-set-project-name": {
88
+ "version": "19.2.4-beta.0",
89
+ "description": "Set project name in nx.json explicitly",
90
+ "implementation": "./src/migrations/update-19-2-4/set-project-name",
91
+ "x-repair-skip": true
92
+ },
93
+ "move-use-daemon-process": {
94
+ "version": "20.0.0-beta.7",
95
+ "description": "Migration for v20.0.0-beta.7",
96
+ "implementation": "./src/migrations/update-20-0-0/move-use-daemon-process"
97
+ },
98
+ "use-legacy-cache": {
99
+ "version": "20.0.1",
100
+ "description": "Set `useLegacyCache` to true for migrating workspaces",
101
+ "implementation": "./src/migrations/update-20-0-1/use-legacy-cache",
102
+ "x-repair-skip": true
103
+ },
104
+ "remove-legacy-cache": {
105
+ "version": "21.0.0-beta.8",
106
+ "description": "Removes the legacy cache configuration from nx.json",
107
+ "implementation": "./src/migrations/update-21-0-0/remove-legacy-cache"
108
+ },
109
+ "remove-custom-tasks-runner": {
110
+ "version": "21.0.0-beta.8",
111
+ "description": "Removes the legacy cache configuration from nx.json",
112
+ "implementation": "./src/migrations/update-21-0-0/remove-custom-tasks-runner"
113
+ },
114
+ "release-version-config-changes": {
115
+ "version": "21.0.0-beta.11",
116
+ "description": "Updates release version config based on the breaking changes in Nx v21",
117
+ "implementation": "./src/migrations/update-21-0-0/release-version-config-changes"
118
+ },
119
+ "release-changelog-config-changes": {
120
+ "version": "21.0.0-beta.11",
121
+ "description": "Updates release changelog config based on the breaking changes in Nx v21",
122
+ "implementation": "./src/migrations/update-21-0-0/release-changelog-config-changes"
123
+ },
124
+ "21-1-0-add-ignore-entries-for-nx-rule-files": {
125
+ "version": "21.1.0-beta.2",
126
+ "description": "Adds **/nx-rules.mdc and **/nx.instructions.md to .gitignore if not present",
127
+ "implementation": "./src/migrations/update-21-1-0/add-gitignore-entry"
128
+ },
129
+ "22-0-0-release-version-config-changes": {
130
+ "version": "22.0.0-beta.1",
131
+ "description": "Updates release version config based on the breaking changes in Nx v22",
132
+ "implementation": "./src/migrations/update-22-0-0/release-version-config-changes"
133
+ },
134
+ "22-0-0-consolidate-release-tag-config": {
135
+ "version": "22.0.0-beta.2",
136
+ "description": "Consolidates releaseTag* options into nested releaseTag object structure",
137
+ "implementation": "./src/migrations/update-22-0-0/consolidate-release-tag-config"
138
+ },
139
+ "22-1-0-update-nx-wrapper": {
140
+ "cli": "nx",
141
+ "version": "22.1.0-beta.5",
142
+ "description": "Updates the nx wrapper.",
143
+ "implementation": "./src/migrations/update-22-1-0/update-nx-wrapper"
145
144
  }
145
+ }
146
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "22.2.0-canary.20251121-9a6c7ad",
3
+ "version": "22.2.0-canary.20251125-7e00ec4",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -83,16 +83,16 @@
83
83
  }
84
84
  },
85
85
  "optionalDependencies": {
86
- "@nx/nx-darwin-arm64": "22.2.0-canary.20251121-9a6c7ad",
87
- "@nx/nx-darwin-x64": "22.2.0-canary.20251121-9a6c7ad",
88
- "@nx/nx-freebsd-x64": "22.2.0-canary.20251121-9a6c7ad",
89
- "@nx/nx-linux-arm-gnueabihf": "22.2.0-canary.20251121-9a6c7ad",
90
- "@nx/nx-linux-arm64-gnu": "22.2.0-canary.20251121-9a6c7ad",
91
- "@nx/nx-linux-arm64-musl": "22.2.0-canary.20251121-9a6c7ad",
92
- "@nx/nx-linux-x64-gnu": "22.2.0-canary.20251121-9a6c7ad",
93
- "@nx/nx-linux-x64-musl": "22.2.0-canary.20251121-9a6c7ad",
94
- "@nx/nx-win32-arm64-msvc": "22.2.0-canary.20251121-9a6c7ad",
95
- "@nx/nx-win32-x64-msvc": "22.2.0-canary.20251121-9a6c7ad"
86
+ "@nx/nx-darwin-arm64": "22.2.0-canary.20251125-7e00ec4",
87
+ "@nx/nx-darwin-x64": "22.2.0-canary.20251125-7e00ec4",
88
+ "@nx/nx-freebsd-x64": "22.2.0-canary.20251125-7e00ec4",
89
+ "@nx/nx-linux-arm-gnueabihf": "22.2.0-canary.20251125-7e00ec4",
90
+ "@nx/nx-linux-arm64-gnu": "22.2.0-canary.20251125-7e00ec4",
91
+ "@nx/nx-linux-arm64-musl": "22.2.0-canary.20251125-7e00ec4",
92
+ "@nx/nx-linux-x64-gnu": "22.2.0-canary.20251125-7e00ec4",
93
+ "@nx/nx-linux-x64-musl": "22.2.0-canary.20251125-7e00ec4",
94
+ "@nx/nx-win32-arm64-msvc": "22.2.0-canary.20251125-7e00ec4",
95
+ "@nx/nx-win32-x64-msvc": "22.2.0-canary.20251125-7e00ec4"
96
96
  },
97
97
  "nx-migrations": {
98
98
  "migrations": "./migrations.json",
@@ -169,6 +169,9 @@
169
169
  "x86_64-unknown-freebsd"
170
170
  ]
171
171
  },
172
+ "main": "./bin/nx.js",
173
+ "types": "./bin/nx.d.ts",
174
+ "type": "commonjs",
172
175
  "scripts": {
173
176
  "postinstall": "node ./bin/post-install || exit 0"
174
177
  }
package/presets/npm.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "pluginsConfig": {
3
- "@nx/js": {
4
- "analyzeSourceFiles": false
5
- }
2
+ "pluginsConfig": {
3
+ "@nx/js": {
4
+ "analyzeSourceFiles": false
6
5
  }
6
+ }
7
7
  }
@@ -99,6 +99,7 @@ export default class DefaultChangelogRenderer {
99
99
  protected shouldRenderAuthors(): boolean;
100
100
  protected renderAuthors(): Promise<string[]>;
101
101
  protected formatChange(change: ChangelogChange): string;
102
+ protected formatBreakingChangeBase(change: ChangelogChange): string;
102
103
  protected formatBreakingChange(change: ChangelogChange): string;
103
104
  protected groupChangesByType(): Record<string, ChangelogChange[]>;
104
105
  protected groupChangesByScope(changes: ChangelogChange[]): Record<string, ChangelogChange[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/release/changelog-renderer/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mFAAmF,CAAC;AAE7H;;GAEG;AACH,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE7D;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,6BAA8B,SAAQ,sBAAsB;IAC3E;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,OAAO,wBAAwB;IAC3C,SAAS,CAAC,OAAO,EAAE,eAAe,EAAE,CAAC;IACrC,SAAS,CAAC,qBAAqB,EAA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C,SAAS,CAAC,gCAAgC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IA+B1E,SAAS,CAAC,UAAU,CAAC,IAAI,SAAK,GAAG,MAAM;CAMxC"}
@@ -273,29 +273,29 @@ class DefaultChangelogRenderer {
273
273
  }
274
274
  return changeLine;
275
275
  }
276
- formatBreakingChange(change) {
277
- const explanation = this.extractBreakingChangeExplanation(change.body);
278
- if (!explanation) {
279
- // No explanation found, use the regular formatChange which includes references
280
- return this.formatChange(change);
281
- }
282
- // Build the breaking change line with scope, explanation, and references
276
+ formatBreakingChangeBase(change) {
283
277
  let breakingLine = '- ';
284
278
  if (change.scope) {
285
279
  breakingLine += `**${change.scope.trim()}:** `;
286
280
  }
287
- // Ensure first line of the breaking change contains the commit title
288
281
  if (change.description) {
289
- breakingLine += `${change.description.trim()} `;
282
+ breakingLine += `${change.description.trim()}`;
290
283
  }
291
- // Add PR/commit references
292
284
  if (this.remoteReleaseClient.getRemoteRepoData() &&
293
285
  this.changelogRenderOptions.commitReferences &&
294
286
  change.githubReferences) {
295
- breakingLine += `${this.remoteReleaseClient.formatReferences(change.githubReferences)}`;
287
+ breakingLine += ` ${this.remoteReleaseClient.formatReferences(change.githubReferences)}`;
288
+ }
289
+ return breakingLine;
290
+ }
291
+ formatBreakingChange(change) {
292
+ const explanation = this.extractBreakingChangeExplanation(change.body);
293
+ const baseLine = this.formatBreakingChangeBase(change);
294
+ if (!explanation) {
295
+ return baseLine;
296
296
  }
297
297
  const indentation = ' ';
298
- breakingLine += `\n${indentation}`;
298
+ let breakingLine = baseLine + `\n${indentation}`;
299
299
  // Handle multi-line explanations
300
300
  let explanationText = explanation;
301
301
  let extraLines = [];