nx 21.3.0-canary.20250710-13551c9 → 21.3.0-canary.20250711-be6d35b

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.
Files changed (37) hide show
  1. package/package.json +11 -11
  2. package/src/command-line/format/command-object.js +12 -6
  3. package/src/command-line/yargs-utils/shared-options.d.ts +1 -0
  4. package/src/command-line/yargs-utils/shared-options.js +5 -0
  5. package/src/core/graph/main.js +1 -1
  6. package/src/core/graph/styles.js +1 -1
  7. package/src/daemon/client/client.js +7 -15
  8. package/src/daemon/client/daemon-socket-messenger.js +2 -9
  9. package/src/daemon/server/file-watching/file-watcher-sockets.js +1 -1
  10. package/src/daemon/server/handle-context-file-data.js +1 -1
  11. package/src/daemon/server/handle-flush-sync-generator-changes-to-disk.js +1 -1
  12. package/src/daemon/server/handle-get-files-in-directory.js +1 -1
  13. package/src/daemon/server/handle-get-registered-sync-generators.js +1 -1
  14. package/src/daemon/server/handle-get-sync-generator-changes.js +1 -1
  15. package/src/daemon/server/handle-glob.js +2 -2
  16. package/src/daemon/server/handle-hash-tasks.d.ts +1 -1
  17. package/src/daemon/server/handle-hash-tasks.js +1 -1
  18. package/src/daemon/server/handle-nx-workspace-files.js +1 -1
  19. package/src/daemon/server/handle-outputs-tracking.js +1 -1
  20. package/src/daemon/server/handle-task-history.d.ts +2 -2
  21. package/src/daemon/server/handle-task-history.js +2 -2
  22. package/src/daemon/server/handle-tasks-execution-hooks.d.ts +1 -1
  23. package/src/daemon/server/handle-tasks-execution-hooks.js +1 -1
  24. package/src/daemon/server/server.d.ts +2 -2
  25. package/src/daemon/server/server.js +28 -49
  26. package/src/daemon/server/shutdown-utils.js +1 -2
  27. package/src/native/nx.wasm32-wasi.wasm +0 -0
  28. package/src/project-graph/plugins/isolation/messaging.js +1 -2
  29. package/src/project-graph/plugins/isolation/plugin-pool.js +5 -19
  30. package/src/project-graph/plugins/loaded-nx-plugin.js +0 -2
  31. package/src/tasks-runner/is-tui-enabled.js +8 -0
  32. package/src/tasks-runner/pseudo-ipc.js +4 -4
  33. package/src/utils/command-line-utils.d.ts +1 -0
  34. package/src/utils/consume-messages-from-socket.d.ts +0 -2
  35. package/src/utils/consume-messages-from-socket.js +3 -18
  36. package/src/utils/project-graph-utils.d.ts +6 -1
  37. 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.20250710-13551c9",
3
+ "version": "21.3.0-canary.20250711-be6d35b",
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.3.0-canary.20250710-13551c9",
87
- "@nx/nx-darwin-x64": "21.3.0-canary.20250710-13551c9",
88
- "@nx/nx-freebsd-x64": "21.3.0-canary.20250710-13551c9",
89
- "@nx/nx-linux-arm-gnueabihf": "21.3.0-canary.20250710-13551c9",
90
- "@nx/nx-linux-arm64-gnu": "21.3.0-canary.20250710-13551c9",
91
- "@nx/nx-linux-arm64-musl": "21.3.0-canary.20250710-13551c9",
92
- "@nx/nx-linux-x64-gnu": "21.3.0-canary.20250710-13551c9",
93
- "@nx/nx-linux-x64-musl": "21.3.0-canary.20250710-13551c9",
94
- "@nx/nx-win32-arm64-msvc": "21.3.0-canary.20250710-13551c9",
95
- "@nx/nx-win32-x64-msvc": "21.3.0-canary.20250710-13551c9"
86
+ "@nx/nx-darwin-arm64": "21.3.0-canary.20250711-be6d35b",
87
+ "@nx/nx-darwin-x64": "21.3.0-canary.20250711-be6d35b",
88
+ "@nx/nx-freebsd-x64": "21.3.0-canary.20250711-be6d35b",
89
+ "@nx/nx-linux-arm-gnueabihf": "21.3.0-canary.20250711-be6d35b",
90
+ "@nx/nx-linux-arm64-gnu": "21.3.0-canary.20250711-be6d35b",
91
+ "@nx/nx-linux-arm64-musl": "21.3.0-canary.20250711-be6d35b",
92
+ "@nx/nx-linux-x64-gnu": "21.3.0-canary.20250711-be6d35b",
93
+ "@nx/nx-linux-x64-musl": "21.3.0-canary.20250711-be6d35b",
94
+ "@nx/nx-win32-arm64-msvc": "21.3.0-canary.20250711-be6d35b",
95
+ "@nx/nx-win32-x64-msvc": "21.3.0-canary.20250711-be6d35b"
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) {