nx 20.0.9 → 20.0.11
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/bin/nx.js +8 -0
- package/bin/post-install.js +2 -2
- package/package.json +11 -11
- package/src/command-line/login/login.js +3 -0
- package/src/command-line/logout/logout.js +3 -0
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.css +1 -1
- package/src/daemon/server/shutdown-utils.js +2 -0
- package/src/native/index.d.ts +2 -0
- package/src/native/native-bindings.js +1 -0
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/project-graph/utils/project-configuration-utils.js +4 -2
- package/src/tasks-runner/create-task-graph.d.ts +13 -16
- package/src/tasks-runner/create-task-graph.js +43 -47
- package/src/tasks-runner/task-graph-utils.d.ts +11 -0
- package/src/tasks-runner/task-graph-utils.js +23 -0
- package/src/utils/db-connection.d.ts +1 -0
- package/src/utils/db-connection.js +7 -0
package/bin/nx.js
CHANGED
|
@@ -16,6 +16,7 @@ const assert_supported_platform_1 = require("../src/native/assert-supported-plat
|
|
|
16
16
|
const perf_hooks_1 = require("perf_hooks");
|
|
17
17
|
const workspace_context_1 = require("../src/utils/workspace-context");
|
|
18
18
|
const client_1 = require("../src/daemon/client/client");
|
|
19
|
+
const db_connection_1 = require("../src/utils/db-connection");
|
|
19
20
|
function main() {
|
|
20
21
|
if (process.argv[2] !== 'report' &&
|
|
21
22
|
process.argv[2] !== '--version' &&
|
|
@@ -213,4 +214,11 @@ const getLatestVersionOfNx = ((fn) => {
|
|
|
213
214
|
let cache = null;
|
|
214
215
|
return () => cache || (cache = fn());
|
|
215
216
|
})(_getLatestVersionOfNx);
|
|
217
|
+
function nxCleanup() {
|
|
218
|
+
(0, db_connection_1.removeDbConnections)();
|
|
219
|
+
}
|
|
220
|
+
process.on('exit', nxCleanup);
|
|
221
|
+
process.on('SIGINT', nxCleanup);
|
|
222
|
+
process.on('SIGTERM', nxCleanup);
|
|
223
|
+
process.on('SIGHUP', nxCleanup);
|
|
216
224
|
main();
|
package/bin/post-install.js
CHANGED
|
@@ -10,14 +10,14 @@ const update_manager_1 = require("../src/nx-cloud/update-manager");
|
|
|
10
10
|
const get_cloud_options_1 = require("../src/nx-cloud/utilities/get-cloud-options");
|
|
11
11
|
const nx_cloud_utils_1 = require("../src/utils/nx-cloud-utils");
|
|
12
12
|
const nx_json_1 = require("../src/config/nx-json");
|
|
13
|
-
const workspace_context_1 = require("../src/utils/workspace-context");
|
|
14
13
|
const logger_1 = require("../src/utils/logger");
|
|
14
|
+
const workspace_context_1 = require("../src/utils/workspace-context");
|
|
15
15
|
(async () => {
|
|
16
16
|
const start = new Date();
|
|
17
17
|
try {
|
|
18
|
-
(0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
|
|
19
18
|
if (isMainNxPackage() && (0, fileutils_1.fileExists)((0, path_1.join)(workspace_root_1.workspaceRoot, 'nx.json'))) {
|
|
20
19
|
(0, assert_supported_platform_1.assertSupportedPlatform)();
|
|
20
|
+
(0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
|
|
21
21
|
try {
|
|
22
22
|
await client_1.daemonClient.stop();
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.11",
|
|
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": {
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"optionalDependencies": {
|
|
83
|
-
"@nx/nx-darwin-x64": "20.0.
|
|
84
|
-
"@nx/nx-darwin-arm64": "20.0.
|
|
85
|
-
"@nx/nx-linux-x64-gnu": "20.0.
|
|
86
|
-
"@nx/nx-linux-x64-musl": "20.0.
|
|
87
|
-
"@nx/nx-win32-x64-msvc": "20.0.
|
|
88
|
-
"@nx/nx-linux-arm64-gnu": "20.0.
|
|
89
|
-
"@nx/nx-linux-arm64-musl": "20.0.
|
|
90
|
-
"@nx/nx-linux-arm-gnueabihf": "20.0.
|
|
91
|
-
"@nx/nx-win32-arm64-msvc": "20.0.
|
|
92
|
-
"@nx/nx-freebsd-x64": "20.0.
|
|
83
|
+
"@nx/nx-darwin-x64": "20.0.11",
|
|
84
|
+
"@nx/nx-darwin-arm64": "20.0.11",
|
|
85
|
+
"@nx/nx-linux-x64-gnu": "20.0.11",
|
|
86
|
+
"@nx/nx-linux-x64-musl": "20.0.11",
|
|
87
|
+
"@nx/nx-win32-x64-msvc": "20.0.11",
|
|
88
|
+
"@nx/nx-linux-arm64-gnu": "20.0.11",
|
|
89
|
+
"@nx/nx-linux-arm64-musl": "20.0.11",
|
|
90
|
+
"@nx/nx-linux-arm-gnueabihf": "20.0.11",
|
|
91
|
+
"@nx/nx-win32-arm64-msvc": "20.0.11",
|
|
92
|
+
"@nx/nx-freebsd-x64": "20.0.11"
|
|
93
93
|
},
|
|
94
94
|
"nx-migrations": {
|
|
95
95
|
"migrations": "./migrations.json",
|
|
@@ -4,6 +4,7 @@ exports.loginHandler = loginHandler;
|
|
|
4
4
|
const update_manager_1 = require("../../nx-cloud/update-manager");
|
|
5
5
|
const get_cloud_options_1 = require("../../nx-cloud/utilities/get-cloud-options");
|
|
6
6
|
const handle_errors_1 = require("../../utils/handle-errors");
|
|
7
|
+
const resolution_helpers_1 = require("../../nx-cloud/resolution-helpers");
|
|
7
8
|
function loginHandler(args) {
|
|
8
9
|
if (args.nxCloudUrl) {
|
|
9
10
|
process.env.NX_CLOUD_API = args.nxCloudUrl;
|
|
@@ -11,6 +12,8 @@ function loginHandler(args) {
|
|
|
11
12
|
return (0, handle_errors_1.handleErrors)(args.verbose, async () => {
|
|
12
13
|
const nxCloudClient = (await (0, update_manager_1.verifyOrUpdateNxCloudClient)((0, get_cloud_options_1.getCloudOptions)()))
|
|
13
14
|
.nxCloudClient;
|
|
15
|
+
const paths = (0, resolution_helpers_1.findAncestorNodeModules)(__dirname, []);
|
|
16
|
+
nxCloudClient.configureLightClientRequire()(paths);
|
|
14
17
|
await nxCloudClient.commands.login();
|
|
15
18
|
});
|
|
16
19
|
}
|
|
@@ -4,10 +4,13 @@ exports.logoutHandler = logoutHandler;
|
|
|
4
4
|
const update_manager_1 = require("../../nx-cloud/update-manager");
|
|
5
5
|
const get_cloud_options_1 = require("../../nx-cloud/utilities/get-cloud-options");
|
|
6
6
|
const handle_errors_1 = require("../../utils/handle-errors");
|
|
7
|
+
const resolution_helpers_1 = require("../../nx-cloud/resolution-helpers");
|
|
7
8
|
function logoutHandler(args) {
|
|
8
9
|
return (0, handle_errors_1.handleErrors)(args.verbose, async () => {
|
|
9
10
|
const nxCloudClient = (await (0, update_manager_1.verifyOrUpdateNxCloudClient)((0, get_cloud_options_1.getCloudOptions)()))
|
|
10
11
|
.nxCloudClient;
|
|
12
|
+
const paths = (0, resolution_helpers_1.findAncestorNodeModules)(__dirname, []);
|
|
13
|
+
nxCloudClient.configureLightClientRequire()(paths);
|
|
11
14
|
await nxCloudClient.commands.logout();
|
|
12
15
|
});
|
|
13
16
|
}
|