@h-rig/cli 0.0.6-alpha.196 → 0.0.6-alpha.197
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/README.md +2 -3
- package/package.json +8 -15
- package/bin/rig-run.js +0 -19
- package/bin/rig.js +0 -19
package/README.md
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
# @h-rig/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Version anchor for the prebuilt, self-contained `rig` binaries, published per platform as `@h-rig/cli-<os>-<arch>`. There is no JS entrypoint; the installer links `rig` and `rig-run` directly to the platform binary.
|
|
4
4
|
|
|
5
5
|
```
|
|
6
|
-
|
|
6
|
+
curl -fsSL https://where.rig-does.work/install | bash
|
|
7
7
|
rig --help
|
|
8
|
-
rig-run --version
|
|
9
8
|
```
|
package/package.json
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-rig/cli",
|
|
3
|
-
"version": "0.0.6-alpha.
|
|
4
|
-
"description": "Rig
|
|
3
|
+
"version": "0.0.6-alpha.197",
|
|
4
|
+
"description": "Rig — version anchor for the prebuilt single-file rig binaries (@h-rig/cli-<os>-<arch>). Install: curl -fsSL https://where.rig-does.work/install | bash",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"bin": {
|
|
7
|
-
"rig": "bin/rig.js",
|
|
8
|
-
"rig-run": "bin/rig-run.js"
|
|
9
|
-
},
|
|
10
6
|
"optionalDependencies": {
|
|
11
|
-
"@h-rig/cli-darwin-arm64": "0.0.6-alpha.
|
|
12
|
-
"@h-rig/cli-darwin-x64": "0.0.6-alpha.
|
|
13
|
-
"@h-rig/cli-linux-x64": "0.0.6-alpha.
|
|
14
|
-
"@h-rig/cli-linux-arm64": "0.0.6-alpha.
|
|
15
|
-
"@h-rig/cli-win32-x64": "0.0.6-alpha.
|
|
16
|
-
}
|
|
17
|
-
"files": [
|
|
18
|
-
"bin"
|
|
19
|
-
]
|
|
7
|
+
"@h-rig/cli-darwin-arm64": "0.0.6-alpha.197",
|
|
8
|
+
"@h-rig/cli-darwin-x64": "0.0.6-alpha.197",
|
|
9
|
+
"@h-rig/cli-linux-x64": "0.0.6-alpha.197",
|
|
10
|
+
"@h-rig/cli-linux-arm64": "0.0.6-alpha.197",
|
|
11
|
+
"@h-rig/cli-win32-x64": "0.0.6-alpha.197"
|
|
12
|
+
}
|
|
20
13
|
}
|
package/bin/rig-run.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
// Launcher for the prebuilt rig-run binary (@h-rig/cli-<os>-<arch>, an optional dep).
|
|
4
|
-
const { spawnSync } = require("node:child_process");
|
|
5
|
-
const tag = process.platform + "-" + process.arch;
|
|
6
|
-
const rigExe = process.platform === "win32" ? "rig.exe" : "rig";
|
|
7
|
-
let rigBin;
|
|
8
|
-
try { rigBin = require.resolve("@h-rig/cli-" + tag + "/" + rigExe); } catch {}
|
|
9
|
-
if (!rigBin) {
|
|
10
|
-
console.error("@h-rig/cli: no prebuilt rig-run binary for " + tag + ".");
|
|
11
|
-
console.error("Supported: darwin-arm64, darwin-x64, linux-x64, linux-arm64, win32-x64.");
|
|
12
|
-
process.exit(1);
|
|
13
|
-
}
|
|
14
|
-
const env = "rig-run" === "rig-run"
|
|
15
|
-
? { ...process.env, RIG_EXEC_BASENAME: "rig-run" }
|
|
16
|
-
: process.env;
|
|
17
|
-
const res = spawnSync(rigBin, process.argv.slice(2), { stdio: "inherit", env });
|
|
18
|
-
if (res.error) { console.error(String(res.error.message || res.error)); process.exit(1); }
|
|
19
|
-
process.exit(res.status == null ? 1 : res.status);
|
package/bin/rig.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
// Launcher for the prebuilt rig binary (@h-rig/cli-<os>-<arch>, an optional dep).
|
|
4
|
-
const { spawnSync } = require("node:child_process");
|
|
5
|
-
const tag = process.platform + "-" + process.arch;
|
|
6
|
-
const rigExe = process.platform === "win32" ? "rig.exe" : "rig";
|
|
7
|
-
let rigBin;
|
|
8
|
-
try { rigBin = require.resolve("@h-rig/cli-" + tag + "/" + rigExe); } catch {}
|
|
9
|
-
if (!rigBin) {
|
|
10
|
-
console.error("@h-rig/cli: no prebuilt rig binary for " + tag + ".");
|
|
11
|
-
console.error("Supported: darwin-arm64, darwin-x64, linux-x64, linux-arm64, win32-x64.");
|
|
12
|
-
process.exit(1);
|
|
13
|
-
}
|
|
14
|
-
const env = "rig" === "rig-run"
|
|
15
|
-
? { ...process.env, RIG_EXEC_BASENAME: "rig-run" }
|
|
16
|
-
: process.env;
|
|
17
|
-
const res = spawnSync(rigBin, process.argv.slice(2), { stdio: "inherit", env });
|
|
18
|
-
if (res.error) { console.error(String(res.error.message || res.error)); process.exit(1); }
|
|
19
|
-
process.exit(res.status == null ? 1 : res.status);
|