nx 20.1.0-beta.1 → 20.1.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/bin/nx.js +8 -0
- package/package.json +12 -12
- 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/core/graph/styles.js +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/tasks-runner/create-task-graph.d.ts +13 -16
- package/src/tasks-runner/create-task-graph.js +44 -48
- package/src/tasks-runner/run-command.js +2 -2
- 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.1.0-beta.
|
3
|
+
"version": "20.1.0-beta.3",
|
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.1.0-beta.
|
84
|
-
"@nx/nx-darwin-arm64": "20.1.0-beta.
|
85
|
-
"@nx/nx-linux-x64-gnu": "20.1.0-beta.
|
86
|
-
"@nx/nx-linux-x64-musl": "20.1.0-beta.
|
87
|
-
"@nx/nx-win32-x64-msvc": "20.1.0-beta.
|
88
|
-
"@nx/nx-linux-arm64-gnu": "20.1.0-beta.
|
89
|
-
"@nx/nx-linux-arm64-musl": "20.1.0-beta.
|
90
|
-
"@nx/nx-linux-arm-gnueabihf": "20.1.0-beta.
|
91
|
-
"@nx/nx-win32-arm64-msvc": "20.1.0-beta.
|
92
|
-
"@nx/nx-freebsd-x64": "20.1.0-beta.
|
83
|
+
"@nx/nx-darwin-x64": "20.1.0-beta.3",
|
84
|
+
"@nx/nx-darwin-arm64": "20.1.0-beta.3",
|
85
|
+
"@nx/nx-linux-x64-gnu": "20.1.0-beta.3",
|
86
|
+
"@nx/nx-linux-x64-musl": "20.1.0-beta.3",
|
87
|
+
"@nx/nx-win32-x64-msvc": "20.1.0-beta.3",
|
88
|
+
"@nx/nx-linux-arm64-gnu": "20.1.0-beta.3",
|
89
|
+
"@nx/nx-linux-arm64-musl": "20.1.0-beta.3",
|
90
|
+
"@nx/nx-linux-arm-gnueabihf": "20.1.0-beta.3",
|
91
|
+
"@nx/nx-win32-arm64-msvc": "20.1.0-beta.3",
|
92
|
+
"@nx/nx-freebsd-x64": "20.1.0-beta.3"
|
93
93
|
},
|
94
94
|
"nx-migrations": {
|
95
95
|
"migrations": "./migrations.json",
|
@@ -160,9 +160,9 @@
|
|
160
160
|
"x86_64-unknown-freebsd"
|
161
161
|
]
|
162
162
|
},
|
163
|
+
"types": "./bin/nx.d.ts",
|
163
164
|
"main": "./bin/nx.js",
|
164
165
|
"type": "commonjs",
|
165
|
-
"types": "./bin/nx.d.ts",
|
166
166
|
"scripts": {
|
167
167
|
"postinstall": "node ./bin/post-install"
|
168
168
|
}
|
@@ -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
|
}
|