nx 22.3.0-canary.20251211-205daee → 22.3.0-canary.20251216-71bfc21

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 (39) hide show
  1. package/executors.json +16 -16
  2. package/generators.json +13 -13
  3. package/migrations.json +138 -138
  4. package/package.json +14 -11
  5. package/presets/npm.json +4 -4
  6. package/schemas/nx-schema.json +1285 -1285
  7. package/schemas/project-schema.json +359 -359
  8. package/schemas/workspace-schema.json +165 -165
  9. package/src/adapter/ngcli-adapter.d.ts.map +1 -1
  10. package/src/adapter/ngcli-adapter.js +28 -3
  11. package/src/ai/set-up-ai-agents/schema.json +31 -31
  12. package/src/command-line/format/format.d.ts.map +1 -1
  13. package/src/command-line/format/format.js +20 -2
  14. package/src/command-line/init/implementation/angular/legacy-angular-versions.d.ts.map +1 -1
  15. package/src/command-line/init/implementation/angular/legacy-angular-versions.js +1 -0
  16. package/src/command-line/release/changelog.js +2 -0
  17. package/src/command-line/release/utils/shared.d.ts +3 -1
  18. package/src/command-line/release/utils/shared.d.ts.map +1 -1
  19. package/src/command-line/release/utils/shared.js +9 -0
  20. package/src/core/graph/main.js +1 -1
  21. package/src/executors/noop/schema.json +8 -8
  22. package/src/executors/run-commands/schema.json +187 -187
  23. package/src/executors/run-script/schema.json +25 -25
  24. package/src/native/nx.wasm32-wasi.wasm +0 -0
  25. package/src/nx-cloud/generators/connect-to-nx-cloud/schema.json +38 -38
  26. package/src/plugins/js/lock-file/pnpm-parser.d.ts.map +1 -1
  27. package/src/plugins/js/lock-file/pnpm-parser.js +88 -23
  28. package/src/plugins/js/lock-file/project-graph-pruning.js +3 -3
  29. package/src/plugins/js/project-graph/affected/npm-packages.d.ts.map +1 -1
  30. package/src/plugins/js/project-graph/affected/npm-packages.js +25 -0
  31. package/src/plugins/js/project-graph/build-dependencies/build-dependencies.d.ts.map +1 -1
  32. package/src/plugins/js/project-graph/build-dependencies/build-dependencies.js +6 -6
  33. package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts.map +1 -1
  34. package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.js +24 -16
  35. package/src/plugins/js/utils/register.d.ts.map +1 -1
  36. package/src/plugins/js/utils/register.js +4 -1
  37. package/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts.map +1 -1
  38. package/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +4 -2
  39. package/src/tasks-runner/run-command.js +1 -1
@@ -1,185 +1,185 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "https://nx.dev",
4
- "title": "JSON schema for Nx workspaces",
5
- "type": "object",
6
- "properties": {
7
- "version": {
8
- "type": "number",
9
- "enum": [1, 2]
10
- }
11
- },
12
- "allOf": [
13
- {
14
- "if": {
15
- "properties": { "version": { "const": 2 } },
16
- "required": ["version"]
17
- },
18
- "then": {
19
- "properties": {
20
- "projects": {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "https://nx.dev",
4
+ "title": "JSON schema for Nx workspaces",
5
+ "type": "object",
6
+ "properties": {
7
+ "version": {
8
+ "type": "number",
9
+ "enum": [1, 2]
10
+ }
11
+ },
12
+ "allOf": [
13
+ {
14
+ "if": {
15
+ "properties": { "version": { "const": 2 } },
16
+ "required": ["version"]
17
+ },
18
+ "then": {
19
+ "properties": {
20
+ "projects": {
21
+ "type": "object",
22
+ "additionalProperties": {
23
+ "oneOf": [
24
+ {
25
+ "type": "string"
26
+ },
27
+ {
28
+ "type": "object",
29
+ "properties": {
30
+ "targets": {
31
+ "type": "object",
32
+ "description": "Configures all the targets which define what tasks you can run against the project",
33
+ "additionalProperties": {
21
34
  "type": "object",
22
- "additionalProperties": {
23
- "oneOf": [
35
+ "properties": {
36
+ "executor": {
37
+ "description": "The function that Nx will invoke when you run this target",
38
+ "type": "string"
39
+ },
40
+ "options": {
41
+ "type": "object"
42
+ },
43
+ "outputs": {
44
+ "type": "array",
45
+ "items": {
46
+ "type": "string"
47
+ }
48
+ },
49
+ "configurations": {
50
+ "type": "object",
51
+ "description": "provides extra sets of values that will be merged into the options map",
52
+ "additionalProperties": {
53
+ "type": "object"
54
+ }
55
+ },
56
+ "dependsOn": {
57
+ "type": "array",
58
+ "description": "Target dependency.",
59
+ "items": {
60
+ "oneOf": [
24
61
  {
25
- "type": "string"
62
+ "type": "string"
26
63
  },
27
64
  {
28
- "type": "object",
29
- "properties": {
30
- "targets": {
31
- "type": "object",
32
- "description": "Configures all the targets which define what tasks you can run against the project",
33
- "additionalProperties": {
34
- "type": "object",
35
- "properties": {
36
- "executor": {
37
- "description": "The function that Nx will invoke when you run this target",
38
- "type": "string"
39
- },
40
- "options": {
41
- "type": "object"
42
- },
43
- "outputs": {
44
- "type": "array",
45
- "items": {
46
- "type": "string"
47
- }
48
- },
49
- "configurations": {
50
- "type": "object",
51
- "description": "provides extra sets of values that will be merged into the options map",
52
- "additionalProperties": {
53
- "type": "object"
54
- }
55
- },
56
- "dependsOn": {
57
- "type": "array",
58
- "description": "Target dependency.",
59
- "items": {
60
- "oneOf": [
61
- {
62
- "type": "string"
63
- },
64
- {
65
- "type": "object",
66
- "properties": {
67
- "projects": {
68
- "oneOf": [
69
- {
70
- "type": "string",
71
- "description": "A project name"
72
- },
73
- {
74
- "type": "array",
75
- "description": "An array of project names",
76
- "items": {
77
- "type": "string"
78
- }
79
- }
80
- ]
81
- },
82
- "dependencies": {
83
- "type": "boolean"
84
- },
85
- "target": {
86
- "type": "string",
87
- "description": "The name of the target."
88
- },
89
- "params": {
90
- "type": "string",
91
- "description": "Configuration for params handling.",
92
- "enum": ["ignore", "forward"],
93
- "default": "ignore"
94
- }
95
- },
96
- "oneOf": [
97
- {
98
- "required": ["projects", "target"]
99
- },
100
- {
101
- "required": ["dependencies", "target"]
102
- },
103
- {
104
- "required": ["target"],
105
- "not": {
106
- "anyOf": [
107
- { "required": ["projects"] },
108
- { "required": ["dependencies"] }
109
- ]
110
- }
111
- }
112
- ],
113
- "additionalProperties": false
114
- }
115
- ]
116
- }
117
- },
118
- "command": {
119
- "type": "string",
120
- "description": "A shorthand for using the nx:run-commands executor"
121
- },
122
- "cache": {
123
- "type": "boolean",
124
- "description": "Specifies if the given target should be cacheable"
125
- }
126
- }
127
- }
128
- },
129
- "tags": {
130
- "type": "array",
131
- "items": {
132
- "type": "string"
133
- }
65
+ "type": "object",
66
+ "properties": {
67
+ "projects": {
68
+ "oneOf": [
69
+ {
70
+ "type": "string",
71
+ "description": "A project name"
134
72
  },
135
- "implicitDependencies": {
136
- "type": "array",
137
- "items": {
138
- "type": "string"
139
- }
73
+ {
74
+ "type": "array",
75
+ "description": "An array of project names",
76
+ "items": {
77
+ "type": "string"
78
+ }
140
79
  }
80
+ ]
81
+ },
82
+ "dependencies": {
83
+ "type": "boolean"
84
+ },
85
+ "target": {
86
+ "type": "string",
87
+ "description": "The name of the target."
88
+ },
89
+ "params": {
90
+ "type": "string",
91
+ "description": "Configuration for params handling.",
92
+ "enum": ["ignore", "forward"],
93
+ "default": "ignore"
141
94
  }
95
+ },
96
+ "oneOf": [
97
+ {
98
+ "required": ["projects", "target"]
99
+ },
100
+ {
101
+ "required": ["dependencies", "target"]
102
+ },
103
+ {
104
+ "required": ["target"],
105
+ "not": {
106
+ "anyOf": [
107
+ { "required": ["projects"] },
108
+ { "required": ["dependencies"] }
109
+ ]
110
+ }
111
+ }
112
+ ],
113
+ "additionalProperties": false
142
114
  }
143
- ]
115
+ ]
116
+ }
117
+ },
118
+ "command": {
119
+ "type": "string",
120
+ "description": "A shorthand for using the nx:run-commands executor"
121
+ },
122
+ "cache": {
123
+ "type": "boolean",
124
+ "description": "Specifies if the given target should be cacheable"
125
+ }
144
126
  }
127
+ }
128
+ },
129
+ "tags": {
130
+ "type": "array",
131
+ "items": {
132
+ "type": "string"
133
+ }
134
+ },
135
+ "implicitDependencies": {
136
+ "type": "array",
137
+ "items": {
138
+ "type": "string"
139
+ }
145
140
  }
141
+ }
146
142
  }
147
- },
148
- "else": {
149
- "properties": {
150
- "projects": {
143
+ ]
144
+ }
145
+ }
146
+ }
147
+ },
148
+ "else": {
149
+ "properties": {
150
+ "projects": {
151
+ "type": "object",
152
+ "additionalProperties": {
153
+ "type": "object",
154
+ "properties": {
155
+ "architect": {
156
+ "type": "object",
157
+ "description": "Configures all the targets which define what tasks you can run against the project",
158
+ "additionalProperties": {
159
+ "type": "object",
160
+ "properties": {
161
+ "builder": {
162
+ "description": "The function that Nx will invoke when you run this architect",
163
+ "type": "string"
164
+ },
165
+ "options": {
166
+ "type": "object"
167
+ },
168
+ "configurations": {
151
169
  "type": "object",
170
+ "description": "provides extra sets of values that will be merged into the options map",
152
171
  "additionalProperties": {
153
- "type": "object",
154
- "properties": {
155
- "architect": {
156
- "type": "object",
157
- "description": "Configures all the targets which define what tasks you can run against the project",
158
- "additionalProperties": {
159
- "type": "object",
160
- "properties": {
161
- "builder": {
162
- "description": "The function that Nx will invoke when you run this architect",
163
- "type": "string"
164
- },
165
- "options": {
166
- "type": "object"
167
- },
168
- "configurations": {
169
- "type": "object",
170
- "description": "provides extra sets of values that will be merged into the options map",
171
- "additionalProperties": {
172
- "type": "object"
173
- }
174
- }
175
- }
176
- }
177
- }
178
- }
172
+ "type": "object"
179
173
  }
174
+ }
180
175
  }
176
+ }
181
177
  }
178
+ }
182
179
  }
180
+ }
183
181
  }
184
- ]
182
+ }
183
+ }
184
+ ]
185
185
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ngcli-adapter.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/adapter/ngcli-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,OAAO,EAEP,IAAI,EACJ,YAAY,EAGZ,SAAS,EAEV,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAWhF,OAAO,EAAgB,UAAU,EAAW,MAAM,MAAM,CAAC;AAUzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mC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ED,wBAAgB,0BAA0B,CACxC,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,IAcnB,MAAM,IAAI,EACV,kBAAkB;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,KACrC,OAAO,CAAC,iBAAiB,CAAC,CAoG9B;AAID,eAAO,MAAM,SAAS,GAAI,mBAAiB,KAAG,OAAO,CAAC,MAqBrD,CAAC;AA2MF;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,EACxE,UAAU,EAAE,CAAC,EACb,eAAe,EAAE,CAAC,EAClB,OAAO,EAAE,oBAAoB,GAC5B,CAAC,CAkDH"}
@@ -39,7 +39,14 @@ async function createBuilderContext(builderInfo, context) {
39
39
  const { workspace } = await workspaces.readWorkspace('angular.json', workspaces.createWorkspaceHost(fsHost));
40
40
  const architectHost = await getWrappedWorkspaceNodeModulesArchitectHost(workspace, context.root, context.projectsConfigurations.projects);
41
41
  const registry = new core_1.schema.CoreSchemaRegistry();
42
- registry.addPostTransform(core_1.schema.transforms.addUndefinedDefaults);
42
+ const isAngularBuild = builderInfo.builderName.startsWith('@angular/build:') ||
43
+ ['@nx/angular:application', '@nx/angular:unit-test'].includes(builderInfo.builderName);
44
+ if (isAngularBuild) {
45
+ registry.addPostTransform(core_1.schema.transforms.addUndefinedObjectDefaults);
46
+ }
47
+ else {
48
+ registry.addPostTransform(core_1.schema.transforms.addUndefinedDefaults);
49
+ }
43
50
  registry.addSmartDefaultProvider('unparsed', () => {
44
51
  // This happens when context.scheduleTarget is used to run a target using nx:run-commands
45
52
  return [];
@@ -118,13 +125,31 @@ async function scheduleTarget(root, opts, verbose) {
118
125
  const logger = (0, exports.getLogger)(verbose);
119
126
  const fsHost = new NxScopedHostForBuilders(root);
120
127
  const { workspace } = await core_1.workspaces.readWorkspace('angular.json', core_1.workspaces.createWorkspaceHost(fsHost));
128
+ const architectHost = await getWrappedWorkspaceNodeModulesArchitectHost(workspace, root, opts.projects);
129
+ const project = workspace.projects.get(opts.project);
130
+ if (!project) {
131
+ throw new Error(`Cannot find project '${opts.project}' in the workspace`);
132
+ }
133
+ if (!project.targets?.get(opts.target)) {
134
+ throw new Error(`Cannot find target '${opts.target}' for project '${opts.project}'`);
135
+ }
136
+ const builderName = project.targets.get(opts.target).builder;
137
+ if (!builderName) {
138
+ throw new Error(`Cannot find the builder for the target '${opts.target}' of project '${opts.project}'`);
139
+ }
140
+ const isAngularBuild = builderName.startsWith('@angular/build:') ||
141
+ ['@nx/angular:application', '@nx/angular:unit-test'].includes(builderName);
121
142
  const registry = new core_1.schema.CoreSchemaRegistry();
122
- registry.addPostTransform(core_1.schema.transforms.addUndefinedDefaults);
143
+ if (isAngularBuild) {
144
+ registry.addPostTransform(core_1.schema.transforms.addUndefinedObjectDefaults);
145
+ }
146
+ else {
147
+ registry.addPostTransform(core_1.schema.transforms.addUndefinedDefaults);
148
+ }
123
149
  registry.addSmartDefaultProvider('unparsed', () => {
124
150
  // This happens when context.scheduleTarget is used to run a target using nx:run-commands
125
151
  return [];
126
152
  });
127
- const architectHost = await getWrappedWorkspaceNodeModulesArchitectHost(workspace, root, opts.projects);
128
153
  const architect = new Architect(architectHost, registry);
129
154
  const run = await architect.scheduleTarget({
130
155
  project: opts.project,
@@ -1,34 +1,34 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "SetupAiAgents",
4
- "title": "Set Up AI Agents",
5
- "description": "Sets up the Nx MCP & rule files for common AI Agents.",
6
- "type": "object",
7
- "properties": {
8
- "directory": {
9
- "type": "string",
10
- "description": "Directory where the AI agent configuration files will be generated",
11
- "default": "."
12
- },
13
- "writeNxCloudRules": {
14
- "type": "boolean",
15
- "description": "Whether to write Nx Cloud rules",
16
- "default": false
17
- },
18
- "packageVersion": {
19
- "type": "string",
20
- "description": "The version of the package to use",
21
- "default": "latest"
22
- },
23
- "agents": {
24
- "type": "array",
25
- "description": "The agents to setup Nx configuration for.",
26
- "items": {
27
- "type": "string",
28
- "enum": ["claude", "gemini", "codex", "cursor", "copilot"]
29
- },
30
- "default": ["claude", "gemini", "codex", "cursor", "copilot"]
31
- }
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "SetupAiAgents",
4
+ "title": "Set Up AI Agents",
5
+ "description": "Sets up the Nx MCP & rule files for common AI Agents.",
6
+ "type": "object",
7
+ "properties": {
8
+ "directory": {
9
+ "type": "string",
10
+ "description": "Directory where the AI agent configuration files will be generated",
11
+ "default": "."
32
12
  },
33
- "required": ["directory"]
13
+ "writeNxCloudRules": {
14
+ "type": "boolean",
15
+ "description": "Whether to write Nx Cloud rules",
16
+ "default": false
17
+ },
18
+ "packageVersion": {
19
+ "type": "string",
20
+ "description": "The version of the package to use",
21
+ "default": "latest"
22
+ },
23
+ "agents": {
24
+ "type": "array",
25
+ "description": "The agents to setup Nx configuration for.",
26
+ "items": {
27
+ "type": "string",
28
+ "enum": ["claude", "gemini", "codex", "cursor", "copilot"]
29
+ },
30
+ "default": ["claude", "gemini", "codex", "cursor", "copilot"]
31
+ }
32
+ },
33
+ "required": ["directory"]
34
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/format/format.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA2B/B,wBAAsB,MAAM,CAC1B,OAAO,EAAE,OAAO,GAAG,OAAO,EAC1B,IAAI,EAAE,KAAK,CAAC,SAAS,GACpB,OAAO,CAAC,IAAI,CAAC,CA8Df"}
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/format/format.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA2B/B,wBAAsB,MAAM,CAC1B,OAAO,EAAE,OAAO,GAAG,OAAO,EAC1B,IAAI,EAAE,KAAK,CAAC,SAAS,GACpB,OAAO,CAAC,IAAI,CAAC,CA8Df"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.format = format;
4
4
  const node_child_process_1 = require("node:child_process");
5
5
  const path = require("node:path");
6
+ const semver_1 = require("semver");
6
7
  const file_utils_1 = require("../../project-graph/file-utils");
7
8
  const command_line_utils_1 = require("../../utils/command-line-utils");
8
9
  const fileutils_1 = require("../../utils/fileutils");
@@ -146,12 +147,15 @@ function write(patterns) {
146
147
  return result;
147
148
  }, [[], []]);
148
149
  const prettierPath = getPrettierPath();
149
- (0, node_child_process_1.execSync)(`node "${prettierPath}" --write --list-different ${regularPatterns.join(' ')}`, {
150
+ const listDifferentArg = shouldUseListDifferent()
151
+ ? '--list-different '
152
+ : '';
153
+ (0, node_child_process_1.execSync)(`node "${prettierPath}" --write ${listDifferentArg}${regularPatterns.join(' ')}`, {
150
154
  stdio: [0, 1, 2],
151
155
  windowsHide: false,
152
156
  });
153
157
  if (swcrcPatterns.length > 0) {
154
- (0, node_child_process_1.execSync)(`node "${prettierPath}" --write --list-different ${swcrcPatterns.join(' ')} --parser json`, {
158
+ (0, node_child_process_1.execSync)(`node "${prettierPath}" --write ${listDifferentArg}${swcrcPatterns.join(' ')} --parser json`, {
155
159
  stdio: [0, 1, 2],
156
160
  windowsHide: false,
157
161
  });
@@ -201,3 +205,17 @@ function getPrettierPath() {
201
205
  prettierPath = require.resolve(path.join('prettier', bin));
202
206
  return prettierPath;
203
207
  }
208
+ let useListDifferent;
209
+ /**
210
+ * Determines if --list-different should be used with --write.
211
+ * Prettier 4+ and 3.6.x with experimental CLI don't support combining these flags.
212
+ */
213
+ function shouldUseListDifferent() {
214
+ if (useListDifferent !== undefined) {
215
+ return useListDifferent;
216
+ }
217
+ const prettierMajor = (0, semver_1.major)(require('prettier').version);
218
+ const isExperimentalCli = process.env.PRETTIER_EXPERIMENTAL_CLI === '1';
219
+ useListDifferent = prettierMajor < 4 && !isExperimentalCli;
220
+ return useListDifferent;
221
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"legacy-angular-versions.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/command-line/init/implementation/angular/legacy-angular-versions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAkBvC,wBAAsB,sCAAsC,CAC1D,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAqGrC"}
1
+ {"version":3,"file":"legacy-angular-versions.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/command-line/init/implementation/angular/legacy-angular-versions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAmBvC,wBAAsB,sCAAsC,CAC1D,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAqGrC"}
@@ -19,6 +19,7 @@ const nxAngularLegacyVersionMap = {
19
19
  15: '~19.0.0',
20
20
  16: '~20.1.0',
21
21
  17: '~21.1.0',
22
+ 18: '~22.2.0',
22
23
  };
23
24
  // min major angular version supported in latest Nx
24
25
  const minMajorAngularVersionSupported = Math.max(...Object.keys(nxAngularLegacyVersionMap).map(Number)) + 1;
@@ -613,6 +613,7 @@ async function generateChangelogForWorkspace({ tree, args, nxReleaseConfig, work
613
613
  const releaseVersion = new shared_1.ReleaseVersion({
614
614
  version: workspaceChangelogVersion,
615
615
  releaseTagPattern: nxReleaseConfig.releaseTag.pattern,
616
+ releaseGroupName: Object.keys(nxReleaseConfig.groups)[0],
616
617
  });
617
618
  if (interpolatedTreePath) {
618
619
  const prefix = dryRun ? 'Previewing' : 'Generating';
@@ -719,6 +720,7 @@ async function generateChangelogForProjects({ tree, args, changes, projectsVersi
719
720
  : projectsVersionData[project.name].newVersion,
720
721
  releaseTagPattern: releaseGroup.releaseTag.pattern,
721
722
  projectName: project.name,
723
+ releaseGroupName: releaseGroup.name,
722
724
  });
723
725
  if (interpolatedTreePath) {
724
726
  const prefix = dryRun ? 'Previewing' : 'Generating';
@@ -34,10 +34,12 @@ export declare class ReleaseVersion {
34
34
  isPrerelease: boolean;
35
35
  constructor({ version, // short form version string with no prefixes or patterns, e.g. 1.0.0
36
36
  releaseTagPattern, // full pattern to interpolate, e.g. "v{version}" or "{projectName}@{version}"
37
- projectName, }: {
37
+ projectName, // optional project name to interpolate into the releaseTagPattern
38
+ releaseGroupName, }: {
38
39
  version: string;
39
40
  releaseTagPattern: string;
40
41
  projectName?: string;
42
+ releaseGroupName?: string;
41
43
  });
42
44
  }
43
45
  export declare function commitChanges({ changedFiles, deletedFiles, isDryRun, isVerbose, gitCommitMessages, gitCommitArgs, }: {
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/utils/shared.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAW7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EACL,SAAS,EAIV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;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AO,CAAA;CAAE,EAC1D,WAAW,EAAE,MAAM,GAClB,OAAO,CAOT;AAED,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,oBAAoB,EAAE,EACrC,8BAA8B,EAAE,GAAG,CAAC,oBAAoB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,EACtE,WAAW,EAAE,WAAW,GACvB,MAAM,EAAE,CA6FV;AAeD,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,IAAI,CAcnE;AA6BD,wBAAsB,4BAA4B,CAChD,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,SAAS,EAAE,EACpB,QAAQ,EAAE,MAAM,EAAE,EAClB,eAAe,EAAE,eAAe,GAElC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,qBAAqB,EAAE,OAAO,CAAA;CAAE,EAAE,CAAC,CAAC,CA6C5E"}
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/utils/shared.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAW7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EACL,SAAS,EAIV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE;QACjB,MAAM,EAAE,MAAM,CAAC;QAC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