nx 21.1.1 → 21.2.0-canary.20250522-7e0719c

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": "21.1.1",
3
+ "version": "21.2.0-canary.20250522-7e0719c",
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.1.1",
87
- "@nx/nx-darwin-x64": "21.1.1",
88
- "@nx/nx-freebsd-x64": "21.1.1",
89
- "@nx/nx-linux-arm-gnueabihf": "21.1.1",
90
- "@nx/nx-linux-arm64-gnu": "21.1.1",
91
- "@nx/nx-linux-arm64-musl": "21.1.1",
92
- "@nx/nx-linux-x64-gnu": "21.1.1",
93
- "@nx/nx-linux-x64-musl": "21.1.1",
94
- "@nx/nx-win32-arm64-msvc": "21.1.1",
95
- "@nx/nx-win32-x64-msvc": "21.1.1"
86
+ "@nx/nx-darwin-arm64": "21.2.0-canary.20250522-7e0719c",
87
+ "@nx/nx-darwin-x64": "21.2.0-canary.20250522-7e0719c",
88
+ "@nx/nx-freebsd-x64": "21.2.0-canary.20250522-7e0719c",
89
+ "@nx/nx-linux-arm-gnueabihf": "21.2.0-canary.20250522-7e0719c",
90
+ "@nx/nx-linux-arm64-gnu": "21.2.0-canary.20250522-7e0719c",
91
+ "@nx/nx-linux-arm64-musl": "21.2.0-canary.20250522-7e0719c",
92
+ "@nx/nx-linux-x64-gnu": "21.2.0-canary.20250522-7e0719c",
93
+ "@nx/nx-linux-x64-musl": "21.2.0-canary.20250522-7e0719c",
94
+ "@nx/nx-win32-arm64-msvc": "21.2.0-canary.20250522-7e0719c",
95
+ "@nx/nx-win32-x64-msvc": "21.2.0-canary.20250522-7e0719c"
96
96
  },
97
97
  "nx-migrations": {
98
98
  "migrations": "./migrations.json",
@@ -231,24 +231,16 @@ class RunningNodeProcess {
231
231
  }
232
232
  kill(signal) {
233
233
  return new Promise((res, rej) => {
234
- if (process.platform === 'win32') {
235
- if (this.childProcess.kill(signal)) {
236
- res();
234
+ treeKill(this.childProcess.pid, signal, (err) => {
235
+ // On Windows, tree-kill (which uses taskkill) may fail when the process or its child process is already terminated.
236
+ // Ignore the errors, otherwise we will log them unnecessarily.
237
+ if (err && process.platform !== 'win32') {
238
+ rej(err);
237
239
  }
238
240
  else {
239
- rej('Unable to kill process');
241
+ res();
240
242
  }
241
- }
242
- else {
243
- treeKill(this.childProcess.pid, signal, (err) => {
244
- if (err) {
245
- rej(err);
246
- }
247
- else {
248
- res();
249
- }
250
- });
251
- }
243
+ });
252
244
  });
253
245
  }
254
246
  triggerOutputListeners(output) {
Binary file