nx 22.0.0-beta.1 → 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.
- package/migrations.json +5 -0
- package/package.json +12 -12
- package/project.json +2 -1
- package/schemas/nx-schema.json +339 -246
- package/schemas/project-schema.json +72 -12
- package/src/adapter/angular-json.d.ts.map +1 -1
- package/src/adapter/angular-json.js +13 -17
- package/src/ai/utils.d.ts +6 -5
- package/src/ai/utils.d.ts.map +1 -1
- package/src/ai/utils.js +14 -13
- package/src/command-line/affected/affected.d.ts.map +1 -1
- package/src/command-line/affected/affected.js +1 -2
- package/src/command-line/configure-ai-agents/configure-ai-agents.d.ts.map +1 -1
- package/src/command-line/configure-ai-agents/configure-ai-agents.js +79 -74
- package/src/command-line/format/format.js +1 -1
- package/src/command-line/init/init-v2.js +1 -1
- package/src/command-line/release/changelog.d.ts.map +1 -1
- package/src/command-line/release/changelog.js +1 -3
- package/src/command-line/release/command-object.d.ts +0 -6
- package/src/command-line/release/command-object.d.ts.map +1 -1
- package/src/command-line/release/config/config.d.ts +1 -1
- package/src/command-line/release/config/config.d.ts.map +1 -1
- package/src/command-line/release/config/config.js +41 -133
- package/src/command-line/release/plan-check.d.ts.map +1 -1
- package/src/command-line/release/plan-check.js +1 -3
- package/src/command-line/release/plan.d.ts.map +1 -1
- package/src/command-line/release/plan.js +1 -3
- package/src/command-line/release/publish.d.ts.map +1 -1
- package/src/command-line/release/publish.js +1 -3
- package/src/command-line/release/release.d.ts.map +1 -1
- package/src/command-line/release/release.js +1 -3
- package/src/command-line/release/utils/get-touched-projects-for-group.js +1 -1
- package/src/command-line/release/utils/git.d.ts.map +1 -1
- package/src/command-line/release/utils/git.js +3 -1
- package/src/command-line/release/utils/resolve-semver-specifier.d.ts +2 -1
- package/src/command-line/release/utils/resolve-semver-specifier.d.ts.map +1 -1
- package/src/command-line/release/utils/semver.d.ts +15 -9
- package/src/command-line/release/utils/semver.d.ts.map +1 -1
- package/src/command-line/release/utils/semver.js +30 -24
- package/src/command-line/release/utils/shared.d.ts +4 -1
- package/src/command-line/release/utils/shared.d.ts.map +1 -1
- package/src/command-line/release/utils/shared.js +33 -11
- package/src/command-line/release/utils/test/test-utils.d.ts +20 -0
- package/src/command-line/release/utils/test/test-utils.d.ts.map +1 -0
- package/src/command-line/release/utils/test/test-utils.js +24 -0
- package/src/command-line/release/version/derive-specifier-from-conventional-commits.d.ts.map +1 -1
- package/src/command-line/release/version/derive-specifier-from-conventional-commits.js +10 -1
- package/src/command-line/release/version/release-group-processor.d.ts.map +1 -1
- package/src/command-line/release/version/release-group-processor.js +1 -2
- package/src/command-line/release/version/test-utils.d.ts.map +1 -1
- package/src/command-line/release/version/test-utils.js +0 -4
- package/src/command-line/release/version.d.ts.map +1 -1
- package/src/command-line/release/version.js +1 -8
- package/src/command-line/show/projects.js +1 -2
- package/src/config/nx-json.d.ts +2 -31
- package/src/config/nx-json.d.ts.map +1 -1
- package/src/config/workspace-json-project-json.d.ts +2 -2
- package/src/config/workspace-json-project-json.d.ts.map +1 -1
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/devkit-exports.d.ts +1 -1
- package/src/devkit-exports.d.ts.map +1 -1
- package/src/migrations/update-21-0-0/release-changelog-config-changes.d.ts.map +1 -1
- package/src/migrations/update-21-0-0/release-version-config-changes.d.ts.map +1 -1
- package/src/migrations/update-21-0-0/release-version-config-changes.js +5 -15
- package/src/migrations/update-22-0-0/release-version-config-changes.d.ts +3 -0
- package/src/migrations/update-22-0-0/release-version-config-changes.d.ts.map +1 -0
- package/src/migrations/update-22-0-0/release-version-config-changes.js +101 -0
- package/src/native/index.d.ts +2 -2
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/plugins/js/index.d.ts +1 -2
- package/src/plugins/js/index.d.ts.map +1 -1
- package/src/plugins/js/index.js +28 -32
- package/src/plugins/js/lock-file/lock-file.d.ts +2 -2
- package/src/plugins/js/lock-file/lock-file.d.ts.map +1 -1
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +1 -1
- package/src/project-graph/file-utils.d.ts +5 -2
- package/src/project-graph/file-utils.d.ts.map +1 -1
- package/src/project-graph/file-utils.js +1 -5
- package/src/project-graph/plugins/loaded-nx-plugin.d.ts.map +1 -1
- package/src/project-graph/plugins/loaded-nx-plugin.js +8 -6
- package/src/project-graph/plugins/public-api.d.ts +1 -36
- package/src/project-graph/plugins/public-api.d.ts.map +1 -1
- package/src/project-graph/plugins/utils.d.ts +4 -2
- package/src/project-graph/plugins/utils.d.ts.map +1 -1
- package/src/utils/nx-console-prompt.d.ts.map +1 -1
- package/src/utils/nx-console-prompt.js +4 -1
- package/src/command-line/release/config/use-legacy-versioning.d.ts +0 -3
- package/src/command-line/release/config/use-legacy-versioning.d.ts.map +0 -1
- package/src/command-line/release/config/use-legacy-versioning.js +0 -9
- package/src/command-line/release/utils/batch-projects-by-generator-config.d.ts +0 -8
- package/src/command-line/release/utils/batch-projects-by-generator-config.d.ts.map +0 -1
- package/src/command-line/release/utils/batch-projects-by-generator-config.js +0 -39
- package/src/command-line/release/version-legacy.d.ts +0 -47
- package/src/command-line/release/version-legacy.d.ts.map +0 -1
- 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
|
-
"
|
|
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,
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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) {
|
package/src/ai/utils.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export declare const supportedAgents: readonly ["claude", "codex", "copilot", "c
|
|
|
2
2
|
export type Agent = (typeof supportedAgents)[number];
|
|
3
3
|
export declare const agentDisplayMap: Record<Agent, string>;
|
|
4
4
|
export type AgentConfiguration = {
|
|
5
|
+
name: Agent;
|
|
6
|
+
displayName: string;
|
|
5
7
|
rules: boolean;
|
|
6
8
|
mcp: boolean;
|
|
7
9
|
rulesPath: string;
|
|
@@ -10,11 +12,10 @@ export type AgentConfiguration = {
|
|
|
10
12
|
disabled?: boolean;
|
|
11
13
|
};
|
|
12
14
|
export declare function getAgentConfigurations(agentsToConsider: Agent[], workspaceRoot: string): Promise<{
|
|
13
|
-
nonConfiguredAgents:
|
|
14
|
-
partiallyConfiguredAgents:
|
|
15
|
-
fullyConfiguredAgents:
|
|
16
|
-
disabledAgents:
|
|
17
|
-
agentConfigurations: Map<Agent, AgentConfiguration>;
|
|
15
|
+
nonConfiguredAgents: AgentConfiguration[];
|
|
16
|
+
partiallyConfiguredAgents: AgentConfiguration[];
|
|
17
|
+
fullyConfiguredAgents: AgentConfiguration[];
|
|
18
|
+
disabledAgents: AgentConfiguration[];
|
|
18
19
|
}>;
|
|
19
20
|
export declare function configureAgents(agents: Agent[], workspaceRoot: string, useLatest?: boolean): Promise<void>;
|
|
20
21
|
//# sourceMappingURL=utils.d.ts.map
|
package/src/ai/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/ai/utils.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,eAAe,6DAMlB,CAAC;AACX,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AACrD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAMjD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAsB,sBAAsB,CAC1C,gBAAgB,EAAE,KAAK,EAAE,EACzB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC;IACT,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/ai/utils.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,eAAe,6DAMlB,CAAC;AACX,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AACrD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAMjD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,KAAK,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAsB,sBAAsB,CAC1C,gBAAgB,EAAE,KAAK,EAAE,EACzB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC;IACT,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;IAC1C,yBAAyB,EAAE,kBAAkB,EAAE,CAAC;IAChD,qBAAqB,EAAE,kBAAkB,EAAE,CAAC;IAC5C,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,CAAC,CA2BD;AAsJD,wBAAsB,eAAe,CACnC,MAAM,EAAE,KAAK,EAAE,EACf,aAAa,EAAE,MAAM,EACrB,SAAS,CAAC,EAAE,OAAO,GAClB,OAAO,CAAC,IAAI,CAAC,CAoBf"}
|
package/src/ai/utils.js
CHANGED
|
@@ -34,22 +34,20 @@ async function getAgentConfigurations(agentsToConsider, workspaceRoot) {
|
|
|
34
34
|
const partiallyConfiguredAgents = [];
|
|
35
35
|
const fullyConfiguredAgents = [];
|
|
36
36
|
const disabledAgents = [];
|
|
37
|
-
const agentConfigurations = new Map();
|
|
38
37
|
for (const agent of agentsToConsider) {
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
41
|
-
disabledAgents.push(
|
|
38
|
+
const configuration = await getAgentConfiguration(agent, workspaceRoot);
|
|
39
|
+
if (configuration.disabled) {
|
|
40
|
+
disabledAgents.push(configuration);
|
|
42
41
|
continue;
|
|
43
42
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
fullyConfiguredAgents.push(agent);
|
|
43
|
+
if (configuration.mcp && configuration.rules) {
|
|
44
|
+
fullyConfiguredAgents.push(configuration);
|
|
47
45
|
}
|
|
48
|
-
else if (!
|
|
49
|
-
nonConfiguredAgents.push(
|
|
46
|
+
else if (!configuration.mcp && !configuration.rules) {
|
|
47
|
+
nonConfiguredAgents.push(configuration);
|
|
50
48
|
}
|
|
51
49
|
else {
|
|
52
|
-
partiallyConfiguredAgents.push(
|
|
50
|
+
partiallyConfiguredAgents.push(configuration);
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -57,7 +55,6 @@ async function getAgentConfigurations(agentsToConsider, workspaceRoot) {
|
|
|
57
55
|
partiallyConfiguredAgents,
|
|
58
56
|
fullyConfiguredAgents,
|
|
59
57
|
disabledAgents,
|
|
60
|
-
agentConfigurations,
|
|
61
58
|
};
|
|
62
59
|
}
|
|
63
60
|
async function getAgentConfiguration(agent, workspaceRoot) {
|
|
@@ -158,10 +155,14 @@ async function getAgentConfiguration(agent, workspaceRoot) {
|
|
|
158
155
|
}
|
|
159
156
|
return {
|
|
160
157
|
...agentConfiguration,
|
|
161
|
-
outdated:
|
|
158
|
+
outdated: agentConfiguration.mcp &&
|
|
159
|
+
agentConfiguration.rules &&
|
|
160
|
+
(await agentWouldChangeWithGenerator(agent, workspaceRoot)),
|
|
161
|
+
name: agent,
|
|
162
|
+
displayName: exports.agentDisplayMap[agent],
|
|
162
163
|
};
|
|
163
164
|
}
|
|
164
|
-
async function
|
|
165
|
+
async function agentWouldChangeWithGenerator(agent, workspaceRoot) {
|
|
165
166
|
const tree = new tree_1.FsTree(workspaceRoot, false);
|
|
166
167
|
const callback = await (0, set_up_ai_agents_1.default)(tree, {
|
|
167
168
|
directory: '.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"affected.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/affected/affected.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAQ7D,OAAO,EACL,YAAY,EACZ,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAMlF,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,OAAO,GAAG,gBAAgB,GAAG,UAAU,EAChD,IAAI,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC1B,uBAAuB,GAAE,MAAM,CAC7B,MAAM,EACN,CAAC,sBAAsB,GAAG,MAAM,CAAC,EAAE,CAC/B,EACN,YAAY,GAGP;IACH,uBAAuB,EAAE,OAAO,CAAC;IACjC,eAAe,EAAE,OAAO,CAAC;CAC1B,GACA,OAAO,CAAC,IAAI,CAAC,CAiEf;AAED,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,uBAAuB,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"affected.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/affected/affected.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAQ7D,OAAO,EACL,YAAY,EACZ,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAMlF,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,OAAO,GAAG,gBAAgB,GAAG,UAAU,EAChD,IAAI,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC1B,uBAAuB,GAAE,MAAM,CAC7B,MAAM,EACN,CAAC,sBAAsB,GAAG,MAAM,CAAC,EAAE,CAC/B,EACN,YAAY,GAGP;IACH,uBAAuB,EAAE,OAAO,CAAC;IACjC,eAAe,EAAE,OAAO,CAAC;CAC1B,GACA,OAAO,CAAC,IAAI,CAAC,CAiEf;AAED,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAmBpC"}
|
|
@@ -14,7 +14,6 @@ const affected_project_graph_1 = require("../../project-graph/affected/affected-
|
|
|
14
14
|
const configuration_1 = require("../../config/configuration");
|
|
15
15
|
const find_matching_projects_1 = require("../../utils/find-matching-projects");
|
|
16
16
|
const graph_1 = require("../graph/graph");
|
|
17
|
-
const all_file_data_1 = require("../../utils/all-file-data");
|
|
18
17
|
async function affected(command, args, extraTargetDependencies = {}, extraOptions = {
|
|
19
18
|
excludeTaskDependencies: args.excludeTaskDependencies,
|
|
20
19
|
loadDotEnvFiles: process.env.NX_LOAD_DOT_ENV_FILES !== 'false',
|
|
@@ -65,7 +64,7 @@ async function affected(command, args, extraTargetDependencies = {}, extraOption
|
|
|
65
64
|
async function getAffectedGraphNodes(nxArgs, projectGraph) {
|
|
66
65
|
let affectedGraph = nxArgs.all
|
|
67
66
|
? projectGraph
|
|
68
|
-
: await (0, affected_project_graph_1.filterAffected)(projectGraph, (0, file_utils_1.calculateFileChanges)((0, command_line_utils_1.parseFiles)(nxArgs).files,
|
|
67
|
+
: await (0, affected_project_graph_1.filterAffected)(projectGraph, (0, file_utils_1.calculateFileChanges)((0, command_line_utils_1.parseFiles)(nxArgs).files, nxArgs));
|
|
69
68
|
if (nxArgs.exclude) {
|
|
70
69
|
const excludedProjects = new Set((0, find_matching_projects_1.findMatchingProjects)(nxArgs.exclude, affectedGraph.nodes));
|
|
71
70
|
return Object.entries(affectedGraph.nodes)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure-ai-agents.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/configure-ai-agents/configure-ai-agents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"configure-ai-agents.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/configure-ai-agents/configure-ai-agents.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAI5D,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,wBAAwB,EAC9B,KAAK,UAAQ,GACZ,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAED,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,IAAI,CAAC,CA2Mf"}
|
|
@@ -37,12 +37,12 @@ async function configureAiAgentsHandler(args, inner = false) {
|
|
|
37
37
|
}
|
|
38
38
|
async function configureAiAgentsHandlerImpl(options) {
|
|
39
39
|
const normalizedOptions = normalizeOptions(options);
|
|
40
|
-
const { nonConfiguredAgents, partiallyConfiguredAgents, fullyConfiguredAgents, disabledAgents,
|
|
40
|
+
const { nonConfiguredAgents, partiallyConfiguredAgents, fullyConfiguredAgents, disabledAgents, } = await (0, utils_1.getAgentConfigurations)(normalizedOptions.agents, workspace_root_1.workspaceRoot);
|
|
41
41
|
if (disabledAgents.length > 0) {
|
|
42
42
|
const commandNames = disabledAgents.map((a) => {
|
|
43
|
-
if (a === 'cursor')
|
|
43
|
+
if (a.name === 'cursor')
|
|
44
44
|
return '"cursor"';
|
|
45
|
-
if (a === 'copilot')
|
|
45
|
+
if (a.name === 'copilot')
|
|
46
46
|
return '"code"/"code-insiders"';
|
|
47
47
|
return a;
|
|
48
48
|
});
|
|
@@ -58,8 +58,7 @@ async function configureAiAgentsHandlerImpl(options) {
|
|
|
58
58
|
],
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
if (normalizedOptions.agents.filter((
|
|
62
|
-
.length === 0) {
|
|
61
|
+
if (normalizedOptions.agents.filter((agentName) => !disabledAgents.find((a) => a.name === agentName)).length === 0) {
|
|
63
62
|
output_1.output.error({
|
|
64
63
|
title: 'Please select at least one AI agent to configure.',
|
|
65
64
|
});
|
|
@@ -75,11 +74,11 @@ async function configureAiAgentsHandlerImpl(options) {
|
|
|
75
74
|
});
|
|
76
75
|
process.exit(0);
|
|
77
76
|
}
|
|
78
|
-
const outOfDateAgents = fullyConfiguredAgents.filter((a) =>
|
|
77
|
+
const outOfDateAgents = fullyConfiguredAgents.filter((a) => a?.outdated);
|
|
79
78
|
if (outOfDateAgents.length === 0) {
|
|
80
79
|
output_1.output.success({
|
|
81
80
|
title: 'All configured AI agents are up to date',
|
|
82
|
-
bodyLines: fullyConfiguredAgents.map((a) => `- ${
|
|
81
|
+
bodyLines: fullyConfiguredAgents.map((a) => `- ${a.displayName}`),
|
|
83
82
|
});
|
|
84
83
|
process.exit(0);
|
|
85
84
|
}
|
|
@@ -88,11 +87,11 @@ async function configureAiAgentsHandlerImpl(options) {
|
|
|
88
87
|
title: 'The following AI agents are out of date:',
|
|
89
88
|
bodyLines: [
|
|
90
89
|
...outOfDateAgents.map((a) => {
|
|
91
|
-
const rulesPath =
|
|
90
|
+
const rulesPath = a.rulesPath;
|
|
92
91
|
const displayPath = rulesPath.startsWith(workspace_root_1.workspaceRoot)
|
|
93
92
|
? (0, path_1.relative)(workspace_root_1.workspaceRoot, rulesPath)
|
|
94
93
|
: rulesPath;
|
|
95
|
-
return `- ${
|
|
94
|
+
return `- ${a.displayName} (${displayPath})`;
|
|
96
95
|
}),
|
|
97
96
|
'',
|
|
98
97
|
'You can update them by running `nx configure-ai-agents`.',
|
|
@@ -101,74 +100,61 @@ async function configureAiAgentsHandlerImpl(options) {
|
|
|
101
100
|
process.exit(1);
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
|
-
|
|
105
|
-
const
|
|
103
|
+
const allAgentChoices = [];
|
|
104
|
+
const preselectedIndices = [];
|
|
105
|
+
let currentIndex = 0;
|
|
106
|
+
// Partially configured agents first (highest priority)
|
|
106
107
|
partiallyConfiguredAgents.forEach((a) => {
|
|
107
|
-
|
|
108
|
+
allAgentChoices.push(getAgentChoiceForPrompt(a));
|
|
109
|
+
preselectedIndices.push(currentIndex);
|
|
110
|
+
currentIndex++;
|
|
108
111
|
});
|
|
112
|
+
// Outdated agents second
|
|
109
113
|
for (const a of fullyConfiguredAgents) {
|
|
110
|
-
if (
|
|
111
|
-
|
|
114
|
+
if (a.outdated) {
|
|
115
|
+
allAgentChoices.push(getAgentChoiceForPrompt(a));
|
|
116
|
+
preselectedIndices.push(currentIndex);
|
|
117
|
+
currentIndex++;
|
|
112
118
|
}
|
|
113
119
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
type: 'multiselect',
|
|
121
|
-
name: 'agents',
|
|
122
|
-
message: 'The following agents are not configured completely or are out of date. Which would you like to update?',
|
|
123
|
-
choices: agentsToUpdate,
|
|
124
|
-
initial: agentsToUpdate.map((_, i) => i),
|
|
125
|
-
required: true,
|
|
126
|
-
})).agents;
|
|
127
|
-
}
|
|
128
|
-
catch {
|
|
129
|
-
process.exit(1);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
// in non-interactive mode, update all
|
|
134
|
-
updateResult = agentsToUpdate.map((a) => a.name);
|
|
135
|
-
}
|
|
136
|
-
if (updateResult?.length > 0) {
|
|
137
|
-
const updateSpinner = ora(`Updating agent configurations...`).start();
|
|
138
|
-
try {
|
|
139
|
-
await (0, utils_1.configureAgents)(updateResult, workspace_root_1.workspaceRoot, false);
|
|
140
|
-
updateSpinner.succeed('Agent configurations updated.');
|
|
141
|
-
}
|
|
142
|
-
catch {
|
|
143
|
-
updateSpinner.fail('Failed to update agent configurations.');
|
|
144
|
-
updateSucceeded = false;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
// then prompt for non-configured agents
|
|
149
|
-
if (nonConfiguredAgents.length === 0) {
|
|
120
|
+
// Non-configured agents last
|
|
121
|
+
nonConfiguredAgents.forEach((a) => {
|
|
122
|
+
allAgentChoices.push(getAgentChoiceForPrompt(a));
|
|
123
|
+
currentIndex++;
|
|
124
|
+
});
|
|
125
|
+
if (allAgentChoices.length === 0) {
|
|
150
126
|
const usingAllAgents = normalizedOptions.agents.length === utils_1.supportedAgents.length;
|
|
151
|
-
const configuredOrUpdatedAgents = [
|
|
152
|
-
...new Set([
|
|
153
|
-
...fullyConfiguredAgents,
|
|
154
|
-
...(updateSucceeded ? updateResult : []),
|
|
155
|
-
]),
|
|
156
|
-
];
|
|
157
127
|
output_1.output.success({
|
|
158
128
|
title: `No new agents to configure. All ${!usingAllAgents ? 'selected' : 'supported'} AI agents are already configured:`,
|
|
159
|
-
bodyLines:
|
|
129
|
+
bodyLines: fullyConfiguredAgents.map((agent) => `- ${agent.displayName}`),
|
|
160
130
|
});
|
|
161
131
|
process.exit(0);
|
|
162
132
|
}
|
|
163
|
-
let
|
|
133
|
+
let selectedAgents;
|
|
164
134
|
if (options.interactive !== false) {
|
|
165
135
|
try {
|
|
166
|
-
|
|
136
|
+
selectedAgents = (await (0, enquirer_1.prompt)({
|
|
167
137
|
type: 'multiselect',
|
|
168
138
|
name: 'agents',
|
|
169
139
|
message: 'Which AI agents would you like to configure? (space to select, enter to confirm)',
|
|
170
|
-
choices:
|
|
140
|
+
choices: allAgentChoices,
|
|
141
|
+
initial: preselectedIndices,
|
|
171
142
|
required: true,
|
|
143
|
+
footer: function () {
|
|
144
|
+
const focused = this.focused;
|
|
145
|
+
if (focused.partial) {
|
|
146
|
+
return chalk.dim(focused.partialReason);
|
|
147
|
+
}
|
|
148
|
+
if (focused.agentConfiguration.outdated) {
|
|
149
|
+
return chalk.dim(` The rules file at ${focused.rulesDisplayPath} can be updated with the latest Nx recommendations`);
|
|
150
|
+
}
|
|
151
|
+
if (!focused.agentConfiguration.mcp &&
|
|
152
|
+
!focused.agentConfiguration.rules) {
|
|
153
|
+
return chalk.dim(` Configures agent rules at ${focused.rulesDisplayPath} and the Nx MCP server ${focused.mcpDisplayPath
|
|
154
|
+
? `at ${focused.mcpDisplayPath}`
|
|
155
|
+
: 'via Nx Console'}`);
|
|
156
|
+
}
|
|
157
|
+
},
|
|
172
158
|
})).agents;
|
|
173
159
|
}
|
|
174
160
|
catch {
|
|
@@ -177,48 +163,67 @@ async function configureAiAgentsHandlerImpl(options) {
|
|
|
177
163
|
}
|
|
178
164
|
else {
|
|
179
165
|
// in non-interactive mode, configure all
|
|
180
|
-
|
|
166
|
+
selectedAgents = allAgentChoices.map((a) => a.name);
|
|
181
167
|
}
|
|
182
|
-
if (
|
|
168
|
+
if (selectedAgents?.length === 0) {
|
|
183
169
|
output_1.output.log({
|
|
184
170
|
title: 'No agents selected',
|
|
185
171
|
});
|
|
186
172
|
process.exit(0);
|
|
187
173
|
}
|
|
174
|
+
const configSpinner = ora(`Configuring agent(s)...`).start();
|
|
188
175
|
try {
|
|
189
|
-
await (0, utils_1.configureAgents)(
|
|
176
|
+
await (0, utils_1.configureAgents)(selectedAgents, workspace_root_1.workspaceRoot, false);
|
|
190
177
|
const configuredOrUpdatedAgents = [
|
|
191
178
|
...new Set([
|
|
192
|
-
...fullyConfiguredAgents,
|
|
193
|
-
...
|
|
194
|
-
...configurationResult,
|
|
179
|
+
...fullyConfiguredAgents.map((a) => a.name),
|
|
180
|
+
...selectedAgents,
|
|
195
181
|
]),
|
|
196
182
|
];
|
|
197
|
-
|
|
198
|
-
|
|
183
|
+
configSpinner.stop();
|
|
184
|
+
output_1.output.log({
|
|
185
|
+
title: 'AI agents set up successfully. Configured Agents:',
|
|
199
186
|
bodyLines: configuredOrUpdatedAgents.map((agent) => `- ${utils_1.agentDisplayMap[agent]}`),
|
|
200
187
|
});
|
|
201
188
|
return;
|
|
202
189
|
}
|
|
203
190
|
catch (e) {
|
|
191
|
+
configSpinner.fail('Failed to set up AI agents');
|
|
204
192
|
output_1.output.error({
|
|
205
|
-
title: '
|
|
193
|
+
title: 'Error details:',
|
|
206
194
|
bodyLines: [e.message],
|
|
207
195
|
});
|
|
208
196
|
process.exit(1);
|
|
209
197
|
}
|
|
210
198
|
}
|
|
211
|
-
function getAgentChoiceForPrompt(agent
|
|
212
|
-
|
|
199
|
+
function getAgentChoiceForPrompt(agent) {
|
|
200
|
+
const partiallyConfigured = agent.mcp !== agent.rules;
|
|
201
|
+
let message = agent.displayName;
|
|
213
202
|
if (partiallyConfigured) {
|
|
214
|
-
message +=
|
|
203
|
+
message += ` (${agent.rules ? 'MCP missing' : 'rules missing'})`;
|
|
215
204
|
}
|
|
216
|
-
else if (outdated) {
|
|
205
|
+
else if (agent.outdated) {
|
|
217
206
|
message += ' (out of date)';
|
|
218
207
|
}
|
|
208
|
+
const rulesDisplayPath = agent.rulesPath.startsWith(workspace_root_1.workspaceRoot)
|
|
209
|
+
? (0, path_1.relative)(workspace_root_1.workspaceRoot, agent.rulesPath)
|
|
210
|
+
: agent.rulesPath;
|
|
211
|
+
const mcpDisplayPath = agent.mcpPath?.startsWith(workspace_root_1.workspaceRoot)
|
|
212
|
+
? (0, path_1.relative)(workspace_root_1.workspaceRoot, agent.mcpPath)
|
|
213
|
+
: agent.mcpPath;
|
|
214
|
+
const partialReason = partiallyConfigured
|
|
215
|
+
? agent.rules
|
|
216
|
+
? ` Partially configured: MCP missing ${agent.mcpPath ? `at ${mcpDisplayPath}` : 'via Nx Console'}`
|
|
217
|
+
: ` Partially configured: rules file missing at ${rulesDisplayPath}`
|
|
218
|
+
: undefined;
|
|
219
219
|
return {
|
|
220
|
-
name: agent,
|
|
220
|
+
name: agent.name,
|
|
221
221
|
message,
|
|
222
|
+
partial: partiallyConfigured,
|
|
223
|
+
partialReason,
|
|
224
|
+
agentConfiguration: agent,
|
|
225
|
+
rulesDisplayPath,
|
|
226
|
+
mcpDisplayPath,
|
|
222
227
|
};
|
|
223
228
|
}
|
|
224
229
|
function normalizeOptions(options) {
|
|
@@ -113,7 +113,7 @@ async function getPatternsFromApps(affectedFiles, allWorkspaceFiles, projectGrap
|
|
|
113
113
|
const graph = await (0, project_graph_1.createProjectGraphAsync)({
|
|
114
114
|
exitOnError: true,
|
|
115
115
|
});
|
|
116
|
-
const affectedGraph = await (0, affected_project_graph_1.filterAffected)(graph, (0, file_utils_1.calculateFileChanges)(affectedFiles
|
|
116
|
+
const affectedGraph = await (0, affected_project_graph_1.filterAffected)(graph, (0, file_utils_1.calculateFileChanges)(affectedFiles));
|
|
117
117
|
return getPatternsFromProjects(Object.keys(affectedGraph.nodes), projectGraph);
|
|
118
118
|
}
|
|
119
119
|
function addRootConfigFiles(chunkList, nxArgs) {
|
|
@@ -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:
|
|
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;
|
|
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
|
-
|
|
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;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,aAAa,GACxC,UAAU,GACV,eAAe,GACf,gBAAgB,GAChB,uBAAuB,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB
|
|
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,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AAM,mBAAmB,EAAE,aAAa,CAC7C,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
|
|
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,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/config/config.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,mBAAmB,EAEnB,sBAAsB,EACtB,4BAA4B,EAG7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAa7E,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,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