kampodra 0.8.3 → 0.8.4
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/kampodra.js +4 -4
- package/package.json +5 -5
package/bin/kampodra.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// kampodra bin shim (the esbuild-style platform-binary pattern): resolve
|
|
3
|
-
// this platform's native binary from the matching @
|
|
3
|
+
// this platform's native binary from the matching @kampodra/<platform>
|
|
4
4
|
// optionalDependency and hand it the argv verbatim. Clear, actionable error
|
|
5
5
|
// when the binary is missing — never a raw stack trace.
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
@@ -19,7 +19,7 @@ const require = createRequire(import.meta.url);
|
|
|
19
19
|
|
|
20
20
|
let bin;
|
|
21
21
|
try {
|
|
22
|
-
bin = require.resolve(`@
|
|
22
|
+
bin = require.resolve(`@kampodra/${platform}/bin/kampodra`);
|
|
23
23
|
} catch (err) {
|
|
24
24
|
console.error(`kampodra: no native binary for ${platform}.`);
|
|
25
25
|
if (!SUPPORTED.has(platform)) {
|
|
@@ -28,7 +28,7 @@ try {
|
|
|
28
28
|
);
|
|
29
29
|
} else {
|
|
30
30
|
console.error(
|
|
31
|
-
` The optionalDependency @
|
|
31
|
+
` The optionalDependency @kampodra/${platform} was not installed.`,
|
|
32
32
|
);
|
|
33
33
|
console.error(
|
|
34
34
|
` npm installs optional dependencies by default — check --omit=optional / "optional": false in your config, then reinstall.`,
|
|
@@ -42,7 +42,7 @@ try {
|
|
|
42
42
|
|
|
43
43
|
if (!existsSync(bin)) {
|
|
44
44
|
console.error(
|
|
45
|
-
`kampodra: @
|
|
45
|
+
`kampodra: @kampodra/${platform} is installed but ${bin} is missing — the package is broken, reinstall it.`,
|
|
46
46
|
);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kampodra",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Registry-free deployment CLI for single-VM container stacks over SSH (Podman + kamal-proxy)",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"kampodra": "bin/kampodra.js"
|
|
9
9
|
},
|
|
10
10
|
"optionalDependencies": {
|
|
11
|
-
"@
|
|
12
|
-
"@
|
|
13
|
-
"@
|
|
14
|
-
"@
|
|
11
|
+
"@kampodra/darwin-arm64": "0.8.4",
|
|
12
|
+
"@kampodra/darwin-x64": "0.8.4",
|
|
13
|
+
"@kampodra/linux-arm64": "0.8.4",
|
|
14
|
+
"@kampodra/linux-x64": "0.8.4"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=20"
|