nx 21.4.0-beta.0 → 21.4.0-beta.10
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/.eslintrc.json +2 -0
- package/bin/nx.js +6 -6
- package/bin/post-install.js +8 -22
- package/package.json +12 -11
- package/schemas/nx-schema.json +99 -1
- package/src/adapter/compat.d.ts +2 -2
- package/src/adapter/compat.d.ts.map +1 -1
- package/src/adapter/compat.js +3 -0
- package/src/command-line/graph/graph.d.ts.map +1 -1
- package/src/command-line/graph/graph.js +152 -45
- package/src/command-line/index.d.ts +23 -0
- package/src/command-line/index.d.ts.map +1 -0
- package/src/command-line/index.js +26 -0
- package/src/command-line/init/implementation/add-nx-to-monorepo.d.ts +1 -1
- package/src/command-line/init/implementation/add-nx-to-monorepo.d.ts.map +1 -1
- package/src/command-line/init/implementation/add-nx-to-monorepo.js +2 -2
- package/src/command-line/init/implementation/add-nx-to-npm-repo.d.ts +1 -1
- package/src/command-line/init/implementation/add-nx-to-npm-repo.d.ts.map +1 -1
- package/src/command-line/init/implementation/add-nx-to-npm-repo.js +2 -2
- package/src/command-line/init/implementation/utils.d.ts.map +1 -1
- package/src/command-line/init/implementation/utils.js +2 -7
- package/src/command-line/init/init-v2.d.ts.map +1 -1
- package/src/command-line/init/init-v2.js +41 -23
- package/src/command-line/mcp/command-object.d.ts +3 -0
- package/src/command-line/mcp/command-object.d.ts.map +1 -0
- package/src/command-line/mcp/command-object.js +28 -0
- package/src/command-line/mcp/mcp.d.ts +3 -0
- package/src/command-line/mcp/mcp.d.ts.map +1 -0
- package/src/command-line/mcp/mcp.js +23 -0
- package/src/command-line/migrate/migrate-ui-api.d.ts.map +1 -1
- package/src/command-line/migrate/migrate-ui-api.js +18 -8
- package/src/command-line/nx-cloud/connect/command-object.d.ts.map +1 -1
- package/src/command-line/nx-cloud/connect/command-object.js +2 -1
- package/src/command-line/nx-cloud/connect/connect-to-nx-cloud.d.ts +1 -0
- package/src/command-line/nx-cloud/connect/connect-to-nx-cloud.d.ts.map +1 -1
- package/src/command-line/nx-cloud/connect/connect-to-nx-cloud.js +19 -5
- package/src/command-line/nx-cloud/connect/view-logs.d.ts.map +1 -1
- package/src/command-line/nx-cloud/connect/view-logs.js +3 -5
- package/src/command-line/nx-commands.d.ts.map +1 -1
- package/src/command-line/nx-commands.js +2 -0
- package/src/command-line/release/changelog.d.ts.map +1 -1
- package/src/command-line/release/changelog.js +7 -2
- package/src/command-line/release/command-object.d.ts +7 -2
- package/src/command-line/release/command-object.d.ts.map +1 -1
- package/src/command-line/release/command-object.js +22 -4
- package/src/command-line/release/config/config.d.ts +10 -3
- package/src/command-line/release/config/config.d.ts.map +1 -1
- package/src/command-line/release/config/config.js +127 -15
- package/src/command-line/release/config/filter-release-groups.d.ts +5 -1
- package/src/command-line/release/config/filter-release-groups.d.ts.map +1 -1
- package/src/command-line/release/publish.js +13 -1
- package/src/command-line/release/release.d.ts.map +1 -1
- package/src/command-line/release/release.js +10 -2
- package/src/command-line/release/utils/resolve-nx-json-error-message.js +1 -1
- package/src/command-line/release/utils/shared.d.ts +9 -0
- package/src/command-line/release/utils/shared.d.ts.map +1 -1
- package/src/command-line/release/utils/shared.js +25 -4
- package/src/command-line/release/version/project-logger.d.ts.map +1 -1
- package/src/command-line/release/version/project-logger.js +1 -0
- package/src/command-line/release/version/release-group-processor.d.ts +6 -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 +73 -3
- package/src/command-line/release/version/version-actions.d.ts +21 -0
- package/src/command-line/release/version/version-actions.d.ts.map +1 -1
- package/src/command-line/release/version/version-actions.js +32 -1
- package/src/command-line/release/version.d.ts.map +1 -1
- package/src/command-line/release/version.js +42 -11
- package/src/command-line/sync/sync.d.ts.map +1 -1
- package/src/command-line/sync/sync.js +8 -2
- package/src/config/nx-json.d.ts +58 -0
- package/src/config/nx-json.d.ts.map +1 -1
- package/src/config/workspace-json-project-json.d.ts +2 -1
- 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.css +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/daemon/server/handle-get-sync-generator-changes.d.ts.map +1 -1
- package/src/daemon/server/handle-get-sync-generator-changes.js +1 -0
- package/src/native/index.d.ts +4 -0
- package/src/native/native-bindings.js +1 -0
- package/src/native/nx.wasi.cjs +12 -10
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.d.ts +1 -1
- package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.d.ts.map +1 -1
- package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +8 -10
- package/src/nx-cloud/utilities/onboarding.d.ts.map +1 -1
- package/src/nx-cloud/utilities/onboarding.js +1 -1
- package/src/nx-cloud/utilities/url-shorten.d.ts +1 -2
- package/src/nx-cloud/utilities/url-shorten.d.ts.map +1 -1
- package/src/nx-cloud/utilities/url-shorten.js +17 -21
- package/src/plugins/js/index.d.ts.map +1 -1
- package/src/plugins/js/index.js +10 -16
- package/src/plugins/js/lock-file/bun-parser.d.ts +15 -0
- package/src/plugins/js/lock-file/bun-parser.d.ts.map +1 -0
- package/src/plugins/js/lock-file/bun-parser.js +964 -0
- 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/lock-file/lock-file.js +40 -17
- package/src/plugins/js/lock-file/npm-parser.js +2 -2
- package/src/plugins/js/lock-file/pnpm-parser.js +2 -1
- package/src/plugins/js/lock-file/project-graph-pruning.d.ts.map +1 -1
- package/src/plugins/js/lock-file/project-graph-pruning.js +3 -1
- package/src/plugins/js/package-json/create-package-json.d.ts.map +1 -1
- package/src/plugins/js/package-json/create-package-json.js +6 -4
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.d.ts.map +1 -1
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +5 -1
- package/src/project-graph/plugins/public-api.d.ts +2 -0
- package/src/project-graph/plugins/public-api.d.ts.map +1 -1
- package/src/project-graph/utils/normalize-project-nodes.d.ts +5 -5
- package/src/project-graph/utils/normalize-project-nodes.d.ts.map +1 -1
- package/src/project-graph/utils/normalize-project-nodes.js +35 -6
- package/src/tasks-runner/is-tui-enabled.d.ts.map +1 -1
- package/src/tasks-runner/is-tui-enabled.js +2 -0
- package/src/tasks-runner/life-cycle.d.ts +2 -0
- package/src/tasks-runner/life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycle.js +7 -0
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +15 -6
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +10 -4
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +5 -2
- package/src/tasks-runner/life-cycles/task-history-life-cycle-old.js +1 -1
- package/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts +1 -1
- package/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/task-history-life-cycle.js +7 -12
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +21 -9
- package/src/tasks-runner/run-command.d.ts.map +1 -1
- package/src/tasks-runner/run-command.js +4 -3
- package/src/tasks-runner/task-orchestrator.d.ts.map +1 -1
- package/src/tasks-runner/task-orchestrator.js +5 -0
- package/src/tasks-runner/tasks-schedule.d.ts +1 -0
- package/src/tasks-runner/tasks-schedule.d.ts.map +1 -1
- package/src/tasks-runner/tasks-schedule.js +3 -0
- package/src/utils/ab-testing.d.ts +4 -4
- package/src/utils/ab-testing.d.ts.map +1 -1
- package/src/utils/ab-testing.js +4 -4
- package/src/utils/git-utils.d.ts +6 -5
- package/src/utils/git-utils.d.ts.map +1 -1
- package/src/utils/git-utils.js +73 -41
- package/src/utils/nx-cloud-utils.d.ts.map +1 -1
- package/src/utils/nx-cloud-utils.js +5 -2
- package/src/utils/sync-generators.d.ts +3 -1
- package/src/utils/sync-generators.d.ts.map +1 -1
- package/src/utils/sync-generators.js +7 -1
package/.eslintrc.json
CHANGED
@@ -138,6 +138,8 @@
|
|
138
138
|
// Powerpack plugin conditionally available dynamically at runtime
|
139
139
|
"@nx/powerpack-conformance",
|
140
140
|
"@nx/conformance",
|
141
|
+
// Nx Docker plugin conditionally available dynamically at runtime
|
142
|
+
"@nx/docker",
|
141
143
|
// Only used in test-utils at the time of writing
|
142
144
|
"@ltd/j-toml"
|
143
145
|
]
|
package/bin/nx.js
CHANGED
@@ -68,7 +68,12 @@ async function main() {
|
|
68
68
|
handleMissingLocalInstallation(workspace ? workspace.dir : null);
|
69
69
|
}
|
70
70
|
// this file is already in the local workspace
|
71
|
-
if (
|
71
|
+
if (isNxCloudCommand(process.argv[2])) {
|
72
|
+
// nx-cloud commands can run without local Nx installation
|
73
|
+
process.env.NX_DAEMON = 'false';
|
74
|
+
require('nx/src/command-line/nx-commands').commandsObject.argv;
|
75
|
+
}
|
76
|
+
else if (isLocalInstall) {
|
72
77
|
await (0, init_local_1.initLocal)(workspace);
|
73
78
|
}
|
74
79
|
else if (localNx) {
|
@@ -82,11 +87,6 @@ async function main() {
|
|
82
87
|
require(localNx);
|
83
88
|
}
|
84
89
|
}
|
85
|
-
else if (isNxCloudCommand(process.argv[2])) {
|
86
|
-
// nx-cloud commands can run without local Nx installation
|
87
|
-
process.env.NX_DAEMON = 'false';
|
88
|
-
require('nx/src/command-line/nx-commands').commandsObject.argv;
|
89
|
-
}
|
90
90
|
}
|
91
91
|
}
|
92
92
|
function handleNoWorkspace(globalNxVersion) {
|
package/bin/post-install.js
CHANGED
@@ -1,43 +1,28 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const project_graph_1 = require("../src/project-graph/project-graph");
|
4
3
|
const workspace_root_1 = require("../src/utils/workspace-root");
|
5
4
|
const fileutils_1 = require("../src/utils/fileutils");
|
6
5
|
const path_1 = require("path");
|
7
|
-
const client_1 = require("../src/daemon/client/client");
|
8
6
|
const assert_supported_platform_1 = require("../src/native/assert-supported-platform");
|
9
7
|
const update_manager_1 = require("../src/nx-cloud/update-manager");
|
10
8
|
const get_cloud_options_1 = require("../src/nx-cloud/utilities/get-cloud-options");
|
11
9
|
const nx_cloud_utils_1 = require("../src/utils/nx-cloud-utils");
|
12
10
|
const nx_json_1 = require("../src/config/nx-json");
|
13
11
|
const logger_1 = require("../src/utils/logger");
|
14
|
-
|
12
|
+
// The post install is not critical, to avoid any chance that it may hang
|
13
|
+
// we will kill this process after 30 seconds.
|
14
|
+
const postinstallTimeout = setTimeout(() => {
|
15
|
+
logger_1.logger.verbose('Nx post-install timed out.');
|
16
|
+
process.exit(0);
|
17
|
+
}, 30_000);
|
15
18
|
(async () => {
|
16
19
|
const start = new Date();
|
17
20
|
try {
|
18
21
|
if (isMainNxPackage() && (0, fileutils_1.fileExists)((0, path_1.join)(workspace_root_1.workspaceRoot, 'nx.json'))) {
|
19
22
|
(0, assert_supported_platform_1.assertSupportedPlatform)();
|
20
|
-
(0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
|
21
|
-
if (client_1.daemonClient.enabled()) {
|
22
|
-
try {
|
23
|
-
await client_1.daemonClient.stop();
|
24
|
-
}
|
25
|
-
catch (e) { }
|
26
|
-
}
|
27
|
-
const tasks = [
|
28
|
-
(0, project_graph_1.buildProjectGraphAndSourceMapsWithoutDaemon)(),
|
29
|
-
];
|
30
23
|
if ((0, nx_cloud_utils_1.isNxCloudUsed)((0, nx_json_1.readNxJson)())) {
|
31
|
-
|
24
|
+
await (0, update_manager_1.verifyOrUpdateNxCloudClient)((0, get_cloud_options_1.getCloudOptions)());
|
32
25
|
}
|
33
|
-
process.env.NX_DAEMON = 'false';
|
34
|
-
await Promise.all(tasks.map((promise) => {
|
35
|
-
return promise.catch((e) => {
|
36
|
-
if (process.env.NX_VERBOSE_LOGGING === 'true') {
|
37
|
-
console.warn(e);
|
38
|
-
}
|
39
|
-
});
|
40
|
-
}));
|
41
26
|
}
|
42
27
|
}
|
43
28
|
catch (e) {
|
@@ -46,6 +31,7 @@ const workspace_context_1 = require("../src/utils/workspace-context");
|
|
46
31
|
finally {
|
47
32
|
const end = new Date();
|
48
33
|
logger_1.logger.verbose(`Nx postinstall steps took ${end.getTime() - start.getTime()}ms`);
|
34
|
+
clearTimeout(postinstallTimeout);
|
49
35
|
process.exit(0);
|
50
36
|
}
|
51
37
|
})();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "21.4.0-beta.
|
3
|
+
"version": "21.4.0-beta.10",
|
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": "21.4.0-beta.
|
87
|
-
"@nx/nx-darwin-x64": "21.4.0-beta.
|
88
|
-
"@nx/nx-freebsd-x64": "21.4.0-beta.
|
89
|
-
"@nx/nx-linux-arm-gnueabihf": "21.4.0-beta.
|
90
|
-
"@nx/nx-linux-arm64-gnu": "21.4.0-beta.
|
91
|
-
"@nx/nx-linux-arm64-musl": "21.4.0-beta.
|
92
|
-
"@nx/nx-linux-x64-gnu": "21.4.0-beta.
|
93
|
-
"@nx/nx-linux-x64-musl": "21.4.0-beta.
|
94
|
-
"@nx/nx-win32-arm64-msvc": "21.4.0-beta.
|
95
|
-
"@nx/nx-win32-x64-msvc": "21.4.0-beta.
|
86
|
+
"@nx/nx-darwin-arm64": "21.4.0-beta.10",
|
87
|
+
"@nx/nx-darwin-x64": "21.4.0-beta.10",
|
88
|
+
"@nx/nx-freebsd-x64": "21.4.0-beta.10",
|
89
|
+
"@nx/nx-linux-arm-gnueabihf": "21.4.0-beta.10",
|
90
|
+
"@nx/nx-linux-arm64-gnu": "21.4.0-beta.10",
|
91
|
+
"@nx/nx-linux-arm64-musl": "21.4.0-beta.10",
|
92
|
+
"@nx/nx-linux-x64-gnu": "21.4.0-beta.10",
|
93
|
+
"@nx/nx-linux-x64-musl": "21.4.0-beta.10",
|
94
|
+
"@nx/nx-win32-arm64-msvc": "21.4.0-beta.10",
|
95
|
+
"@nx/nx-win32-x64-msvc": "21.4.0-beta.10"
|
96
96
|
},
|
97
97
|
"nx-migrations": {
|
98
98
|
"migrations": "./migrations.json",
|
@@ -129,6 +129,7 @@
|
|
129
129
|
"@nx/vue",
|
130
130
|
"@nx/web",
|
131
131
|
"@nx/webpack",
|
132
|
+
"@nx/docker",
|
132
133
|
{
|
133
134
|
"package": "nx-cloud",
|
134
135
|
"version": "latest"
|
package/schemas/nx-schema.json
CHANGED
@@ -224,6 +224,18 @@
|
|
224
224
|
"description": "Enables using version plans as a specifier source for versioning and to determine changes for changelog generation."
|
225
225
|
}
|
226
226
|
]
|
227
|
+
},
|
228
|
+
"docker": {
|
229
|
+
"oneOf": [
|
230
|
+
{
|
231
|
+
"type": "boolean",
|
232
|
+
"enum": [true],
|
233
|
+
"description": "Enable docker configuration with default settings. Warning: Docker support is experimental. Breaking changes may occur and not adhere to semver versioning. "
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"$ref": "#/definitions/NxReleaseGroupDockerConfiguration"
|
237
|
+
}
|
238
|
+
]
|
227
239
|
}
|
228
240
|
},
|
229
241
|
"required": ["projects"]
|
@@ -309,6 +321,18 @@
|
|
309
321
|
},
|
310
322
|
"releaseTagPatternStrictPreid": {
|
311
323
|
"$ref": "#/definitions/NxReleaseReleaseTagPatternStrictPreidConfiguration"
|
324
|
+
},
|
325
|
+
"docker": {
|
326
|
+
"oneOf": [
|
327
|
+
{
|
328
|
+
"type": "boolean",
|
329
|
+
"enum": [true],
|
330
|
+
"description": "Enable docker configuration with default settings. Warning: Docker support is experimental. Breaking changes may occur and not adhere to semver versioning."
|
331
|
+
},
|
332
|
+
{
|
333
|
+
"$ref": "#/definitions/NxReleaseDockerConfiguration"
|
334
|
+
}
|
335
|
+
]
|
312
336
|
}
|
313
337
|
}
|
314
338
|
},
|
@@ -759,7 +783,28 @@
|
|
759
783
|
"manifestRootsToUpdate": {
|
760
784
|
"type": "array",
|
761
785
|
"items": {
|
762
|
-
"
|
786
|
+
"oneOf": [
|
787
|
+
{
|
788
|
+
"type": "string",
|
789
|
+
"description": "Path to the directory containing a manifest file to update. Supports placeholders like {projectRoot} and {projectName}."
|
790
|
+
},
|
791
|
+
{
|
792
|
+
"type": "object",
|
793
|
+
"properties": {
|
794
|
+
"path": {
|
795
|
+
"type": "string",
|
796
|
+
"description": "Path to the directory containing a manifest file to update. Supports placeholders like {projectRoot} and {projectName}."
|
797
|
+
},
|
798
|
+
"preserveLocalDependencyProtocols": {
|
799
|
+
"type": "boolean",
|
800
|
+
"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.",
|
801
|
+
"default": true
|
802
|
+
}
|
803
|
+
},
|
804
|
+
"required": ["path"],
|
805
|
+
"additionalProperties": false
|
806
|
+
}
|
807
|
+
]
|
763
808
|
},
|
764
809
|
"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."
|
765
810
|
},
|
@@ -995,6 +1040,59 @@
|
|
995
1040
|
}
|
996
1041
|
}
|
997
1042
|
}
|
1043
|
+
},
|
1044
|
+
"NxReleaseDockerConfiguration": {
|
1045
|
+
"type": "object",
|
1046
|
+
"description": "Configuration for handling Docker projects during nx release.",
|
1047
|
+
"properties": {
|
1048
|
+
"preVersionCommand": {
|
1049
|
+
"type": "string",
|
1050
|
+
"description": "A command to run after validation of nx release configuration, but before docker versioning begins. Useful for preparing docker build artifacts. If --dry-run is passed, the command is still executed, but with the NX_DRY_RUN environment variable set to 'true'."
|
1051
|
+
},
|
1052
|
+
"skipVersionActions": {
|
1053
|
+
"oneOf": [
|
1054
|
+
{
|
1055
|
+
"type": "array",
|
1056
|
+
"items": {
|
1057
|
+
"type": "string"
|
1058
|
+
},
|
1059
|
+
"description": "Array of projects which should use a no-op VersionActions implementation rather than any potentially inferred by default or via Inference Plugins."
|
1060
|
+
},
|
1061
|
+
{
|
1062
|
+
"type": "boolean",
|
1063
|
+
"description": "When set to true, all projects in the release setup/release group will use a no-op VersionActions implementation."
|
1064
|
+
}
|
1065
|
+
],
|
1066
|
+
"description": "Projects which should use a no-op VersionActions implementation rather than any potentially inferred by default or via Inference Plugins. Can be an array of project names (subset of projects in the release setup/release group) or a boolean (true means all projects)."
|
1067
|
+
},
|
1068
|
+
"versionSchemes": {
|
1069
|
+
"type": "object",
|
1070
|
+
"additionalProperties": {
|
1071
|
+
"type": "string"
|
1072
|
+
},
|
1073
|
+
"description": "Record of named version patterns to choose between when versioning docker projects. e.g. \"production\": \"{currentDate|YYMM.DD}.{shortCommitSha}\", \"hotfix\": \"{currentDate|YYMM.DD}-hotfix\""
|
1074
|
+
},
|
1075
|
+
"repositoryName": {
|
1076
|
+
"type": "string",
|
1077
|
+
"description": "Repository name for the image on the configured registry"
|
1078
|
+
},
|
1079
|
+
"registryUrl": {
|
1080
|
+
"type": "string",
|
1081
|
+
"description": "Url of the Docker Image/Container Registry to push images to. Defaults to Docker Hub."
|
1082
|
+
}
|
1083
|
+
},
|
1084
|
+
"additionalProperties": false
|
1085
|
+
},
|
1086
|
+
"NxReleaseGroupDockerConfiguration": {
|
1087
|
+
"type": "object",
|
1088
|
+
"$comment": "We need to improve this configuration definition to be more precise once legacy versioning is removed. Right now it needs to be left open and runtime validation will ensure correct behavior.",
|
1089
|
+
"properties": {
|
1090
|
+
"groupPreVersionCommand": {
|
1091
|
+
"type": "string",
|
1092
|
+
"description": "A command to run after validation of nx release configuration, but before docker versioning begins. Used for preparing docker build artifacts. If --dry-run is passed, the command is still executed, but with the NX_DRY_RUN environment variable set to 'true'. It will run in addition to the global `preVersionCommand`"
|
1093
|
+
}
|
1094
|
+
},
|
1095
|
+
"additionalProperties": true
|
998
1096
|
}
|
999
1097
|
}
|
1000
1098
|
}
|
package/src/adapter/compat.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare const allowedProjectExtensions: readonly ["tags", "implicitDependencies", "configFilePath", "$schema", "generators", "namedInputs", "name", "files", "root", "sourceRoot", "projectType", "release", "includedScripts", "metadata"];
|
2
|
-
export declare const allowedWorkspaceExtensions: readonly ["$schema", "implicitDependencies", "affected", "defaultBase", "tasksRunnerOptions", "workspaceLayout", "plugins", "targetDefaults", "files", "generators", "namedInputs", "extends", "cli", "pluginsConfig", "defaultProject", "installation", "release", "nxCloudAccessToken", "nxCloudId", "nxCloudUrl", "nxCloudEncryptionKey", "parallel", "cacheDirectory", "useDaemonProcess", "useInferencePlugins", "neverConnectToCloud", "sync", "useLegacyCache", "maxCacheSize", "tui"];
|
1
|
+
export declare const allowedProjectExtensions: readonly ["tags", "implicitDependencies", "configFilePath", "$schema", "generators", "namedInputs", "name", "files", "root", "sourceRoot", "projectType", "release", "includedScripts", "metadata", "owners", "nxCloudImplicitDependencies"];
|
2
|
+
export declare const allowedWorkspaceExtensions: readonly ["$schema", "implicitDependencies", "affected", "defaultBase", "tasksRunnerOptions", "workspaceLayout", "plugins", "targetDefaults", "files", "generators", "namedInputs", "extends", "cli", "pluginsConfig", "defaultProject", "installation", "release", "nxCloudAccessToken", "nxCloudId", "nxCloudUrl", "nxCloudEncryptionKey", "parallel", "cacheDirectory", "useDaemonProcess", "useInferencePlugins", "neverConnectToCloud", "sync", "useLegacyCache", "maxCacheSize", "tui", "owners"];
|
3
3
|
//# sourceMappingURL=compat.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/adapter/compat.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,wBAAwB,
|
1
|
+
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/adapter/compat.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,wBAAwB,8OAiB3B,CAAC;AAQX,eAAO,MAAM,0BAA0B,yeAgC7B,CAAC"}
|
package/src/adapter/compat.js
CHANGED
@@ -29,6 +29,8 @@ exports.allowedProjectExtensions = [
|
|
29
29
|
'release',
|
30
30
|
'includedScripts',
|
31
31
|
'metadata',
|
32
|
+
'owners',
|
33
|
+
'nxCloudImplicitDependencies',
|
32
34
|
];
|
33
35
|
// If we pass props on the workspace that angular doesn't know about,
|
34
36
|
// it throws a warning that users see. We want to pass them still,
|
@@ -67,6 +69,7 @@ exports.allowedWorkspaceExtensions = [
|
|
67
69
|
'useLegacyCache',
|
68
70
|
'maxCacheSize',
|
69
71
|
'tui',
|
72
|
+
'owners',
|
70
73
|
];
|
71
74
|
if (!patched) {
|
72
75
|
Module.prototype.require = function () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/graph/graph.ts"],"names":[],"mappings":"AA0BA,OAAO,EAEL,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/graph/graph.ts"],"names":[],"mappings":"AA0BA,OAAO,EAEL,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,uBAA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