nx 21.3.0-canary.20250710-13551c9 → 21.3.0-canary.20250712-18e5d95
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/package.json +12 -12
- package/src/command-line/format/command-object.js +12 -6
- package/src/command-line/yargs-utils/shared-options.d.ts +1 -0
- package/src/command-line/yargs-utils/shared-options.js +5 -0
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/daemon/client/client.js +7 -15
- package/src/daemon/client/daemon-socket-messenger.js +2 -9
- package/src/daemon/server/file-watching/file-watcher-sockets.js +1 -1
- package/src/daemon/server/handle-context-file-data.js +1 -1
- package/src/daemon/server/handle-flush-sync-generator-changes-to-disk.js +1 -1
- package/src/daemon/server/handle-get-files-in-directory.js +1 -1
- package/src/daemon/server/handle-get-registered-sync-generators.js +1 -1
- package/src/daemon/server/handle-get-sync-generator-changes.js +1 -1
- package/src/daemon/server/handle-glob.js +2 -2
- package/src/daemon/server/handle-hash-tasks.d.ts +1 -1
- package/src/daemon/server/handle-hash-tasks.js +1 -1
- package/src/daemon/server/handle-nx-workspace-files.js +1 -1
- package/src/daemon/server/handle-outputs-tracking.js +1 -1
- package/src/daemon/server/handle-task-history.d.ts +2 -2
- package/src/daemon/server/handle-task-history.js +2 -2
- package/src/daemon/server/handle-tasks-execution-hooks.d.ts +1 -1
- package/src/daemon/server/handle-tasks-execution-hooks.js +1 -1
- package/src/daemon/server/server.d.ts +2 -2
- package/src/daemon/server/server.js +28 -49
- package/src/daemon/server/shutdown-utils.js +1 -2
- package/src/native/index.d.ts +2 -1
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/project-graph/plugins/isolation/messaging.js +1 -2
- package/src/project-graph/plugins/isolation/plugin-pool.js +5 -19
- package/src/project-graph/plugins/loaded-nx-plugin.js +0 -2
- package/src/tasks-runner/is-tui-enabled.js +8 -0
- package/src/tasks-runner/pseudo-ipc.js +4 -4
- package/src/tasks-runner/run-command.js +1 -1
- package/src/utils/command-line-utils.d.ts +1 -0
- package/src/utils/consume-messages-from-socket.d.ts +0 -2
- package/src/utils/consume-messages-from-socket.js +3 -18
- package/src/utils/project-graph-utils.d.ts +6 -1
- package/src/utils/project-graph-utils.js +11 -6
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "21.3.0-canary.
|
3
|
+
"version": "21.3.0-canary.20250712-18e5d95",
|
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": {
|
@@ -50,7 +50,7 @@
|
|
50
50
|
"flat": "^5.0.2",
|
51
51
|
"front-matter": "^4.0.2",
|
52
52
|
"ignore": "^5.0.4",
|
53
|
-
"jest-diff": "^
|
53
|
+
"jest-diff": "^30.0.2",
|
54
54
|
"jsonc-parser": "3.2.0",
|
55
55
|
"lines-and-columns": "2.0.3",
|
56
56
|
"minimatch": "9.0.3",
|
@@ -83,16 +83,16 @@
|
|
83
83
|
}
|
84
84
|
},
|
85
85
|
"optionalDependencies": {
|
86
|
-
"@nx/nx-darwin-arm64": "21.3.0-canary.
|
87
|
-
"@nx/nx-darwin-x64": "21.3.0-canary.
|
88
|
-
"@nx/nx-freebsd-x64": "21.3.0-canary.
|
89
|
-
"@nx/nx-linux-arm-gnueabihf": "21.3.0-canary.
|
90
|
-
"@nx/nx-linux-arm64-gnu": "21.3.0-canary.
|
91
|
-
"@nx/nx-linux-arm64-musl": "21.3.0-canary.
|
92
|
-
"@nx/nx-linux-x64-gnu": "21.3.0-canary.
|
93
|
-
"@nx/nx-linux-x64-musl": "21.3.0-canary.
|
94
|
-
"@nx/nx-win32-arm64-msvc": "21.3.0-canary.
|
95
|
-
"@nx/nx-win32-x64-msvc": "21.3.0-canary.
|
86
|
+
"@nx/nx-darwin-arm64": "21.3.0-canary.20250712-18e5d95",
|
87
|
+
"@nx/nx-darwin-x64": "21.3.0-canary.20250712-18e5d95",
|
88
|
+
"@nx/nx-freebsd-x64": "21.3.0-canary.20250712-18e5d95",
|
89
|
+
"@nx/nx-linux-arm-gnueabihf": "21.3.0-canary.20250712-18e5d95",
|
90
|
+
"@nx/nx-linux-arm64-gnu": "21.3.0-canary.20250712-18e5d95",
|
91
|
+
"@nx/nx-linux-arm64-musl": "21.3.0-canary.20250712-18e5d95",
|
92
|
+
"@nx/nx-linux-x64-gnu": "21.3.0-canary.20250712-18e5d95",
|
93
|
+
"@nx/nx-linux-x64-musl": "21.3.0-canary.20250712-18e5d95",
|
94
|
+
"@nx/nx-win32-arm64-msvc": "21.3.0-canary.20250712-18e5d95",
|
95
|
+
"@nx/nx-win32-x64-msvc": "21.3.0-canary.20250712-18e5d95"
|
96
96
|
},
|
97
97
|
"nx-migrations": {
|
98
98
|
"migrations": "./migrations.json",
|
@@ -37,13 +37,8 @@ function withFormatOptions(yargs) {
|
|
37
37
|
coerce: shared_options_1.parseCSV,
|
38
38
|
})
|
39
39
|
.option('sort-root-tsconfig-paths', {
|
40
|
-
describe: `Ensure the workspace's tsconfig compilerOptions.paths are sorted. Warning: This will cause comments in the tsconfig to be lost.`,
|
40
|
+
describe: `Ensure the workspace's tsconfig compilerOptions.paths are sorted. Warning: This will cause comments in the tsconfig to be lost. The default value is "true" unless NX_FORMAT_SORT_TSCONFIG_PATHS is set to "false".`,
|
41
41
|
type: 'boolean',
|
42
|
-
/**
|
43
|
-
* TODO(v22): Stop sorting tsconfig paths by default, paths are now less common/important
|
44
|
-
* in Nx workspace setups, and the sorting causes comments to be lost.
|
45
|
-
*/
|
46
|
-
default: true,
|
47
42
|
})
|
48
43
|
.option('all', {
|
49
44
|
describe: 'Format all projects.',
|
@@ -51,5 +46,16 @@ function withFormatOptions(yargs) {
|
|
51
46
|
})
|
52
47
|
.conflicts({
|
53
48
|
all: 'projects',
|
49
|
+
})
|
50
|
+
.middleware((args) => {
|
51
|
+
/**
|
52
|
+
* TODO(v22): Stop sorting tsconfig paths by default, paths are now less common/important
|
53
|
+
* in Nx workspace setups, and the sorting causes comments to be lost.
|
54
|
+
*/
|
55
|
+
args.sortRootTsconfigPaths ??=
|
56
|
+
process.env.NX_FORMAT_SORT_TSCONFIG_PATHS !== 'false';
|
57
|
+
// If NX_FORMAT_SORT_TSCONFIG_PATHS=false and --sort-root-tsconfig-paths is passed, we want to set it to true favoring the arg
|
58
|
+
process.env.NX_FORMAT_SORT_TSCONFIG_PATHS =
|
59
|
+
args.sortRootTsconfigPaths.toString();
|
54
60
|
});
|
55
61
|
}
|
@@ -25,6 +25,7 @@ export interface RunOptions {
|
|
25
25
|
}
|
26
26
|
export interface TuiOptions {
|
27
27
|
tuiAutoExit: boolean | number;
|
28
|
+
tui: boolean;
|
28
29
|
}
|
29
30
|
export declare function withTuiOptions<T>(yargs: Argv<T>): Argv<T & TuiOptions>;
|
30
31
|
export declare function withRunOptions<T>(yargs: Argv<T>): Argv<T & RunOptions>;
|
@@ -38,6 +38,11 @@ function withTuiOptions(yargs) {
|
|
38
38
|
describe: 'Whether or not to exit the TUI automatically after all tasks finish, and after how long. If set to `true`, the TUI will exit immediately. If set to `false` the TUI will not automatically exit. If set to a number, an interruptible countdown popup will be shown for that many seconds before the TUI exits.',
|
39
39
|
type: 'string',
|
40
40
|
coerce: (v) => coerceTuiAutoExit(v),
|
41
|
+
})
|
42
|
+
.option('tui', {
|
43
|
+
describe: 'Enable or disable the Nx Terminal UI.',
|
44
|
+
type: 'boolean',
|
45
|
+
conflicts: 'outputStyle',
|
41
46
|
})
|
42
47
|
.middleware((args) => {
|
43
48
|
if (args.tuiAutoExit !== undefined) {
|