@useech0/cli 0.1.0 → 0.1.2
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/ech0.cjs +9 -0
- package/package.json +5 -5
package/bin/ech0.cjs
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
const { spawnSync } = require("node:child_process");
|
|
12
|
+
const { chmodSync } = require("node:fs");
|
|
12
13
|
const path = require("node:path");
|
|
13
14
|
|
|
14
15
|
const SUPPORTED = {
|
|
@@ -42,6 +43,14 @@ try {
|
|
|
42
43
|
process.exit(1);
|
|
43
44
|
}
|
|
44
45
|
|
|
46
|
+
// npm stores the platform package without its executable bit (the package has
|
|
47
|
+
// no `bin` entry, only a `files` allowance), so restore it before spawning.
|
|
48
|
+
try {
|
|
49
|
+
chmodSync(binary, 0o755);
|
|
50
|
+
} catch {
|
|
51
|
+
// Read-only install (e.g. a shared prefix): fall back to the stored mode.
|
|
52
|
+
}
|
|
53
|
+
|
|
45
54
|
const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit" });
|
|
46
55
|
|
|
47
56
|
if (result.error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useech0/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Ech0 command line — talks to a running Ech0 instance over its REST API",
|
|
5
5
|
"license": "AGPL-3.0-or-later",
|
|
6
6
|
"homepage": "https://github.com/lin-snow/Ech0/tree/main/apps/cli",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"node": ">=18"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@useech0/cli-darwin-arm64": "0.1.
|
|
35
|
-
"@useech0/cli-darwin-x64": "0.1.
|
|
36
|
-
"@useech0/cli-linux-arm64": "0.1.
|
|
37
|
-
"@useech0/cli-linux-x64": "0.1.
|
|
34
|
+
"@useech0/cli-darwin-arm64": "0.1.2",
|
|
35
|
+
"@useech0/cli-darwin-x64": "0.1.2",
|
|
36
|
+
"@useech0/cli-linux-arm64": "0.1.2",
|
|
37
|
+
"@useech0/cli-linux-x64": "0.1.2"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|