nx 20.0.10 → 20.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/nx.js +8 -0
- 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/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
|
}
|