@pylonsync/cli 0.3.23 → 0.3.53
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/pylon.js +23 -4
- package/package.json +3 -5
package/bin/pylon.js
CHANGED
|
@@ -23,20 +23,39 @@ const require = createRequire(import.meta.url);
|
|
|
23
23
|
|
|
24
24
|
// Map (process.platform, process.arch) → package name. The name is also
|
|
25
25
|
// the platform-package's directory name on disk.
|
|
26
|
+
//
|
|
27
|
+
// `darwin-x64` (Intel Mac) and `linux-arm64` (ARM Linux: Raspberry Pi,
|
|
28
|
+
// AWS Graviton, etc.) intentionally omitted — those binaries aren't
|
|
29
|
+
// built in CI today. Intel Mac dropped because macos-13 GitHub-hosted
|
|
30
|
+
// runners are no longer reliably available and cross-compiling from
|
|
31
|
+
// arm64 macOS is blocked on libxmlsec1. ARM Linux dropped because
|
|
32
|
+
// cross-compiling libxmlsec1 from ubuntu-latest is non-trivial.
|
|
33
|
+
// Affected users hit the `UNSUPPORTED_HINTS` message below.
|
|
26
34
|
const PLATFORM_PACKAGES = {
|
|
27
35
|
"darwin-arm64": "@pylonsync/cli-darwin-arm64",
|
|
28
|
-
"darwin-x64": "@pylonsync/cli-darwin-x64",
|
|
29
|
-
"linux-arm64": "@pylonsync/cli-linux-arm64",
|
|
30
36
|
"linux-x64": "@pylonsync/cli-linux-x64",
|
|
31
37
|
};
|
|
32
38
|
|
|
39
|
+
const UNSUPPORTED_HINTS = {
|
|
40
|
+
"darwin-x64":
|
|
41
|
+
"Intel Macs aren't currently supported by the npm-distributed CLI " +
|
|
42
|
+
"(macos-13 GitHub runners are gone and cross-compile from arm64 is " +
|
|
43
|
+
"blocked on libxmlsec1). Apple Silicon Macs are supported.",
|
|
44
|
+
"linux-arm64":
|
|
45
|
+
"ARM Linux isn't currently supported by the npm-distributed CLI " +
|
|
46
|
+
"(libxmlsec1 cross-compile from ubuntu-latest is unsolved).",
|
|
47
|
+
};
|
|
48
|
+
|
|
33
49
|
function resolveBinary() {
|
|
34
50
|
const key = `${process.platform}-${process.arch}`;
|
|
35
51
|
const pkg = PLATFORM_PACKAGES[key];
|
|
36
52
|
if (!pkg) {
|
|
53
|
+
const hint = UNSUPPORTED_HINTS[key]
|
|
54
|
+
? `\n${UNSUPPORTED_HINTS[key]}`
|
|
55
|
+
: "";
|
|
37
56
|
throw new Error(
|
|
38
|
-
`@pylonsync/cli: no prebuilt binary for ${key}
|
|
39
|
-
`Supported: ${Object.keys(PLATFORM_PACKAGES).join(", ")}.\n` +
|
|
57
|
+
`@pylonsync/cli: no prebuilt binary for ${key}.${hint}\n` +
|
|
58
|
+
`Supported via npm: ${Object.keys(PLATFORM_PACKAGES).join(", ")}.\n` +
|
|
40
59
|
`Build from source: https://github.com/pylonsync/pylon`,
|
|
41
60
|
);
|
|
42
61
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pylonsync/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.53",
|
|
4
4
|
"description": "Pylon CLI — `pylon dev`, `pylon start`, `pylon migrate`, etc. Bundles the native binary for your platform via optionalDependencies, no postinstall script required.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://pylonsync.com",
|
|
@@ -25,9 +25,7 @@
|
|
|
25
25
|
"node": ">=18"
|
|
26
26
|
},
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"@pylonsync/cli-darwin-arm64": "0.3.
|
|
29
|
-
"@pylonsync/cli-
|
|
30
|
-
"@pylonsync/cli-linux-arm64": "0.3.23",
|
|
31
|
-
"@pylonsync/cli-linux-x64": "0.3.23"
|
|
28
|
+
"@pylonsync/cli-darwin-arm64": "0.3.53",
|
|
29
|
+
"@pylonsync/cli-linux-x64": "0.3.53"
|
|
32
30
|
}
|
|
33
31
|
}
|