@gbits-jszx/dg-cli 0.0.11 → 0.0.13
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/dg-cli.js +9 -0
- package/package.json +6 -6
package/bin/dg-cli.js
CHANGED
|
@@ -26,5 +26,14 @@ try {
|
|
|
26
26
|
env: process.env,
|
|
27
27
|
});
|
|
28
28
|
} catch (err) {
|
|
29
|
+
// 若子进程根本没起来(EACCES / ENOENT 等),stdio:inherit 也拿不到任何输出,
|
|
30
|
+
// 必须自己打印才能让用户看到根因;正常退出码非 0 时不打扰。
|
|
31
|
+
if (err && err.code && err.code !== 0 && typeof err.status !== "number") {
|
|
32
|
+
console.error(`[dg-cli] 启动失败: ${err.code} ${err.message}`);
|
|
33
|
+
console.error(`[dg-cli] 二进制: ${binPath}`);
|
|
34
|
+
if (err.code === "EACCES") {
|
|
35
|
+
console.error(`[dg-cli] 提示: 缺可执行位,尝试 chmod +x "${binPath}" 后重试`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
29
38
|
process.exit(typeof err.status === "number" ? err.status : 1);
|
|
30
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gbits-jszx/dg-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "DataGateway CLI — 部署/运维/配置一站式(Go binary,npx 分发)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"dg-cli": "bin/dg-cli.js"
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"node": ">=14"
|
|
14
14
|
},
|
|
15
15
|
"optionalDependencies": {
|
|
16
|
-
"@gbits-jszx/dg-cli-linux-x64": "0.0.
|
|
17
|
-
"@gbits-jszx/dg-cli-linux-arm64": "0.0.
|
|
18
|
-
"@gbits-jszx/dg-cli-darwin-x64": "0.0.
|
|
19
|
-
"@gbits-jszx/dg-cli-darwin-arm64": "0.0.
|
|
20
|
-
"@gbits-jszx/dg-cli-win32-x64": "0.0.
|
|
16
|
+
"@gbits-jszx/dg-cli-linux-x64": "0.0.13",
|
|
17
|
+
"@gbits-jszx/dg-cli-linux-arm64": "0.0.13",
|
|
18
|
+
"@gbits-jszx/dg-cli-darwin-x64": "0.0.13",
|
|
19
|
+
"@gbits-jszx/dg-cli-darwin-arm64": "0.0.13",
|
|
20
|
+
"@gbits-jszx/dg-cli-win32-x64": "0.0.13"
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"repository": {
|