nx 22.4.0-canary.20260121-1b12e1f → 22.4.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "22.4.0-canary.20260121-1b12e1f",
3
+ "version": "22.4.1",
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": "22.4.0-canary.20260121-1b12e1f",
87
- "@nx/nx-darwin-x64": "22.4.0-canary.20260121-1b12e1f",
88
- "@nx/nx-freebsd-x64": "22.4.0-canary.20260121-1b12e1f",
89
- "@nx/nx-linux-arm-gnueabihf": "22.4.0-canary.20260121-1b12e1f",
90
- "@nx/nx-linux-arm64-gnu": "22.4.0-canary.20260121-1b12e1f",
91
- "@nx/nx-linux-arm64-musl": "22.4.0-canary.20260121-1b12e1f",
92
- "@nx/nx-linux-x64-gnu": "22.4.0-canary.20260121-1b12e1f",
93
- "@nx/nx-linux-x64-musl": "22.4.0-canary.20260121-1b12e1f",
94
- "@nx/nx-win32-arm64-msvc": "22.4.0-canary.20260121-1b12e1f",
95
- "@nx/nx-win32-x64-msvc": "22.4.0-canary.20260121-1b12e1f"
86
+ "@nx/nx-darwin-arm64": "22.4.1",
87
+ "@nx/nx-darwin-x64": "22.4.1",
88
+ "@nx/nx-freebsd-x64": "22.4.1",
89
+ "@nx/nx-linux-arm-gnueabihf": "22.4.1",
90
+ "@nx/nx-linux-arm64-gnu": "22.4.1",
91
+ "@nx/nx-linux-arm64-musl": "22.4.1",
92
+ "@nx/nx-linux-x64-gnu": "22.4.1",
93
+ "@nx/nx-linux-x64-musl": "22.4.1",
94
+ "@nx/nx-win32-arm64-msvc": "22.4.1",
95
+ "@nx/nx-win32-x64-msvc": "22.4.1"
96
96
  },
97
97
  "nx-migrations": {
98
98
  "migrations": "./migrations.json",
@@ -11,7 +11,7 @@ exports.yargsResetCommand = {
11
11
  type: 'boolean',
12
12
  })
13
13
  .option('onlyDaemon', {
14
- description: 'Stops the Nx Daemon, it will be restarted fresh when the next Nx command is run.',
14
+ description: 'Stops the Nx Daemon and clears its workspace data, it will be restarted fresh when the next Nx command is run.',
15
15
  type: 'boolean',
16
16
  })
17
17
  .option('onlyCloud', {
@@ -1 +1 @@
1
- {"version":3,"file":"reset.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/reset/reset.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAavD,wBAAsB,YAAY,CAAC,IAAI,EAAE,mBAAmB,iBA+E3D"}
1
+ {"version":3,"file":"reset.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/reset/reset.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAavD,wBAAsB,YAAY,CAAC,IAAI,EAAE,mBAAmB,iBAuF3D"}
@@ -4,6 +4,7 @@ exports.resetHandler = resetHandler;
4
4
  const node_fs_1 = require("node:fs");
5
5
  const node_path_1 = require("node:path");
6
6
  const client_1 = require("../../daemon/client/client");
7
+ const tmp_dir_1 = require("../../daemon/tmp-dir");
7
8
  const cache_directory_1 = require("../../utils/cache-directory");
8
9
  const output_1 = require("../../utils/output");
9
10
  const native_file_cache_location_1 = require("../../native/native-file-cache-location");
@@ -29,7 +30,7 @@ async function resetHandler(args) {
29
30
  const bodyLines = [];
30
31
  if (!all) {
31
32
  if (args.onlyDaemon) {
32
- bodyLines.push('- Nx Daemon');
33
+ bodyLines.push('- Nx Daemon and its workspace data');
33
34
  }
34
35
  if (args.onlyCache) {
35
36
  bodyLines.push('- Cache directory');
@@ -49,6 +50,12 @@ async function resetHandler(args) {
49
50
  catch (e) {
50
51
  errors.push('Failed to stop the Nx Daemon.', e.toString());
51
52
  }
53
+ try {
54
+ await cleanupDaemonWorkspaceData();
55
+ }
56
+ catch (e) {
57
+ errors.push('Failed to clean up the daemon workspace data directory.', e.toString());
58
+ }
52
59
  }
53
60
  if (all || args.onlyCache) {
54
61
  try {
@@ -99,6 +106,14 @@ async function killDaemon() {
99
106
  return client_1.daemonClient.stop();
100
107
  }
101
108
  }
109
+ function cleanupDaemonWorkspaceData() {
110
+ return incrementalBackoff(INCREMENTAL_BACKOFF_FIRST_DELAY, INCREMENTAL_BACKOFF_MAX_DURATION, () => {
111
+ (0, node_fs_1.rmSync)(tmp_dir_1.DAEMON_DIR_FOR_CURRENT_WORKSPACE, {
112
+ recursive: true,
113
+ force: true,
114
+ });
115
+ });
116
+ }
102
117
  async function resetCloudClient() {
103
118
  // Remove nx cloud marker files. This helps if the use happens to run `nx-cloud start-ci-run` or
104
119
  // similar commands on their local machine.
Binary file