@zjarlin/aio 2026.5.10 → 2026.9.14
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/bin/aio.cjs +3 -0
- package/package.json +6 -6
package/bin/aio.cjs
CHANGED
|
@@ -16,12 +16,15 @@ try {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const child = spawn(binary, process.argv.slice(2), { stdio: "inherit" });
|
|
19
|
+
const signals = ["SIGINT", "SIGTERM"];
|
|
20
|
+
for (const signal of signals) process.on(signal, () => child.kill(signal));
|
|
19
21
|
child.once("error", (error) => {
|
|
20
22
|
console.error(`无法启动 AIO CLI: ${error.message}`);
|
|
21
23
|
process.exitCode = 1;
|
|
22
24
|
});
|
|
23
25
|
child.once("exit", (code, signal) => {
|
|
24
26
|
if (signal !== null) {
|
|
27
|
+
for (const name of signals) process.removeAllListeners(name);
|
|
25
28
|
process.kill(process.pid, signal);
|
|
26
29
|
return;
|
|
27
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zjarlin/aio",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.9.14",
|
|
4
4
|
"description": "AIO application and plugin CLI",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/zjarlin/aio-platform",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"test": "node scripts/check-release.cjs && node --test test/*.test.cjs"
|
|
28
28
|
},
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@zjarlin/aio-darwin-arm64": "2026.
|
|
31
|
-
"@zjarlin/aio-darwin-x64": "2026.
|
|
32
|
-
"@zjarlin/aio-linux-arm64": "2026.
|
|
33
|
-
"@zjarlin/aio-linux-x64": "2026.
|
|
34
|
-
"@zjarlin/aio-win32-x64": "2026.
|
|
30
|
+
"@zjarlin/aio-darwin-arm64": "2026.9.14",
|
|
31
|
+
"@zjarlin/aio-darwin-x64": "2026.9.14",
|
|
32
|
+
"@zjarlin/aio-linux-arm64": "2026.9.14",
|
|
33
|
+
"@zjarlin/aio-linux-x64": "2026.9.14",
|
|
34
|
+
"@zjarlin/aio-win32-x64": "2026.9.14"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public",
|