nx 21.0.1 → 21.0.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 +1 -20
- package/package.json +11 -11
- package/src/command-line/affected/command-object.js +1 -1
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/executors/run-script/run-script.impl.js +2 -1
- package/src/native/index.d.ts +1 -1
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +1 -1
- package/src/tasks-runner/forked-process-task-runner.js +1 -1
- package/src/tasks-runner/life-cycle.d.ts +2 -2
- package/src/tasks-runner/life-cycle.js +2 -2
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +23 -9
- package/src/tasks-runner/pseudo-terminal.d.ts +1 -1
- package/src/tasks-runner/pseudo-terminal.js +5 -13
- package/src/tasks-runner/task-orchestrator.js +8 -2
- package/src/utils/exit-codes.d.ts +4 -0
- package/src/utils/exit-codes.js +16 -0
package/bin/nx.js
CHANGED
@@ -17,7 +17,6 @@ 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
19
|
const db_connection_1 = require("../src/utils/db-connection");
|
20
|
-
const exit_codes_1 = require("../src/utils/exit-codes");
|
21
20
|
// In case Nx Cloud forcibly exits while the TUI is running, ensure the terminal is restored etc.
|
22
21
|
process.on('exit', (...args) => {
|
23
22
|
if (typeof globalThis.tuiOnProcessExit === 'function') {
|
@@ -221,25 +220,7 @@ const getLatestVersionOfNx = ((fn) => {
|
|
221
220
|
let cache = null;
|
222
221
|
return () => cache || (cache = fn());
|
223
222
|
})(_getLatestVersionOfNx);
|
224
|
-
function nxCleanup(signal) {
|
225
|
-
(0, db_connection_1.removeDbConnections)();
|
226
|
-
if (signal) {
|
227
|
-
process.exit((0, exit_codes_1.signalToCode)(signal));
|
228
|
-
}
|
229
|
-
else {
|
230
|
-
process.exit();
|
231
|
-
}
|
232
|
-
}
|
233
223
|
process.on('exit', () => {
|
234
|
-
|
235
|
-
});
|
236
|
-
process.on('SIGINT', () => {
|
237
|
-
nxCleanup('SIGINT');
|
238
|
-
});
|
239
|
-
process.on('SIGTERM', () => {
|
240
|
-
nxCleanup('SIGTERM');
|
241
|
-
});
|
242
|
-
process.on('SIGHUP', () => {
|
243
|
-
nxCleanup('SIGHUP');
|
224
|
+
(0, db_connection_1.removeDbConnections)();
|
244
225
|
});
|
245
226
|
main();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "21.0.
|
3
|
+
"version": "21.0.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": {
|
@@ -83,16 +83,16 @@
|
|
83
83
|
}
|
84
84
|
},
|
85
85
|
"optionalDependencies": {
|
86
|
-
"@nx/nx-darwin-arm64": "21.0.
|
87
|
-
"@nx/nx-darwin-x64": "21.0.
|
88
|
-
"@nx/nx-freebsd-x64": "21.0.
|
89
|
-
"@nx/nx-linux-arm-gnueabihf": "21.0.
|
90
|
-
"@nx/nx-linux-arm64-gnu": "21.0.
|
91
|
-
"@nx/nx-linux-arm64-musl": "21.0.
|
92
|
-
"@nx/nx-linux-x64-gnu": "21.0.
|
93
|
-
"@nx/nx-linux-x64-musl": "21.0.
|
94
|
-
"@nx/nx-win32-arm64-msvc": "21.0.
|
95
|
-
"@nx/nx-win32-x64-msvc": "21.0.
|
86
|
+
"@nx/nx-darwin-arm64": "21.0.3",
|
87
|
+
"@nx/nx-darwin-x64": "21.0.3",
|
88
|
+
"@nx/nx-freebsd-x64": "21.0.3",
|
89
|
+
"@nx/nx-linux-arm-gnueabihf": "21.0.3",
|
90
|
+
"@nx/nx-linux-arm64-gnu": "21.0.3",
|
91
|
+
"@nx/nx-linux-arm64-musl": "21.0.3",
|
92
|
+
"@nx/nx-linux-x64-gnu": "21.0.3",
|
93
|
+
"@nx/nx-linux-x64-musl": "21.0.3",
|
94
|
+
"@nx/nx-win32-arm64-msvc": "21.0.3",
|
95
|
+
"@nx/nx-win32-x64-msvc": "21.0.3"
|
96
96
|
},
|
97
97
|
"nx-migrations": {
|
98
98
|
"migrations": "./migrations.json",
|
@@ -6,7 +6,7 @@ const documentation_1 = require("../yargs-utils/documentation");
|
|
6
6
|
const shared_options_1 = require("../yargs-utils/shared-options");
|
7
7
|
exports.yargsAffectedCommand = {
|
8
8
|
command: 'affected',
|
9
|
-
describe: 'Run target for affected projects.',
|
9
|
+
describe: 'Run target for affected projects. See https://nx.dev/ci/features/affected for more details.',
|
10
10
|
builder: (yargs) => (0, documentation_1.linkToNxDevAndExamples)((0, shared_options_1.withAffectedOptions)((0, shared_options_1.withTuiOptions)((0, shared_options_1.withRunOptions)((0, shared_options_1.withOutputStyleOption)((0, shared_options_1.withTargetAndConfigurationOption)((0, shared_options_1.withBatch)(yargs))))))
|
11
11
|
.option('all', {
|
12
12
|
type: 'boolean',
|