@optique/testing 1.3.0-dev.2506 → 1.3.0-dev.2510
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/dist/cli.cjs +3 -3
- package/dist/cli.js +3 -3
- package/package.json +4 -4
package/dist/cli.cjs
CHANGED
|
@@ -352,7 +352,7 @@ function runProcess(command, args, options) {
|
|
|
352
352
|
return false;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
async function taskkill(deadline) {
|
|
355
|
+
async function taskkill(deadline, pid) {
|
|
356
356
|
let helper;
|
|
357
357
|
const root = node_process.default.env.SystemRoot ?? node_process.default.env.windir;
|
|
358
358
|
if (root === void 0 || !(0, node_path.isAbsolute)(root)) {
|
|
@@ -363,7 +363,7 @@ function runProcess(command, args, options) {
|
|
|
363
363
|
try {
|
|
364
364
|
helper = (0, node_child_process.spawn)((0, node_path.join)(root, "System32", "taskkill.exe"), [
|
|
365
365
|
"/PID",
|
|
366
|
-
String(
|
|
366
|
+
String(pid),
|
|
367
367
|
"/T",
|
|
368
368
|
"/F"
|
|
369
369
|
], {
|
|
@@ -428,7 +428,7 @@ function runProcess(command, args, options) {
|
|
|
428
428
|
if (child !== void 0) {
|
|
429
429
|
child.stdin.destroy();
|
|
430
430
|
if (child.pid !== void 0) if (node_process.default.platform === "win32") if (options.cleanup === "tree") if (exited || closed) cleanupErrors.push(/* @__PURE__ */ new Error("Cannot trace a Windows process tree after its root exits."));
|
|
431
|
-
else await taskkill(deadline);
|
|
431
|
+
else await taskkill(deadline, child.pid);
|
|
432
432
|
else killChild("SIGKILL");
|
|
433
433
|
else if (options.cleanup === "tree") {
|
|
434
434
|
const found = groupSignal("SIGTERM");
|
package/dist/cli.js
CHANGED
|
@@ -351,7 +351,7 @@ function runProcess(command, args, options) {
|
|
|
351
351
|
return false;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
async function taskkill(deadline) {
|
|
354
|
+
async function taskkill(deadline, pid) {
|
|
355
355
|
let helper;
|
|
356
356
|
const root = process.env.SystemRoot ?? process.env.windir;
|
|
357
357
|
if (root === void 0 || !isAbsolute(root)) {
|
|
@@ -362,7 +362,7 @@ function runProcess(command, args, options) {
|
|
|
362
362
|
try {
|
|
363
363
|
helper = spawn(join(root, "System32", "taskkill.exe"), [
|
|
364
364
|
"/PID",
|
|
365
|
-
String(
|
|
365
|
+
String(pid),
|
|
366
366
|
"/T",
|
|
367
367
|
"/F"
|
|
368
368
|
], {
|
|
@@ -427,7 +427,7 @@ function runProcess(command, args, options) {
|
|
|
427
427
|
if (child !== void 0) {
|
|
428
428
|
child.stdin.destroy();
|
|
429
429
|
if (child.pid !== void 0) if (process.platform === "win32") if (options.cleanup === "tree") if (exited || closed) cleanupErrors.push(/* @__PURE__ */ new Error("Cannot trace a Windows process tree after its root exits."));
|
|
430
|
-
else await taskkill(deadline);
|
|
430
|
+
else await taskkill(deadline, child.pid);
|
|
431
431
|
else killChild("SIGKILL");
|
|
432
432
|
else if (options.cleanup === "tree") {
|
|
433
433
|
const found = groupSignal("SIGTERM");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/testing",
|
|
3
|
-
"version": "1.3.0-dev.
|
|
3
|
+
"version": "1.3.0-dev.2510",
|
|
4
4
|
"description": "Testing support for Optique command-line interfaces",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
},
|
|
87
87
|
"sideEffects": false,
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@optique/core": "1.3.0-dev.
|
|
90
|
-
"@optique/discover": "1.3.0-dev.
|
|
91
|
-
"@optique/run": "1.3.0-dev.
|
|
89
|
+
"@optique/core": "1.3.0-dev.2510+1f58e11d",
|
|
90
|
+
"@optique/discover": "1.3.0-dev.2510+1f58e11d",
|
|
91
|
+
"@optique/run": "1.3.0-dev.2510+1f58e11d"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@types/node": "^24.0.0",
|