@pylonsync/cli 0.3.274 → 0.3.276
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 +17 -0
- package/package.json +3 -3
package/bin/pylon.js
CHANGED
|
@@ -47,6 +47,23 @@ const UNSUPPORTED_HINTS = {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
function resolveBinary() {
|
|
50
|
+
// Escape hatch for a locally-built binary (esbuild's ESBUILD_BINARY_PATH
|
|
51
|
+
// pattern). Without this, a `cargo install`ed or hand-built `pylon` is
|
|
52
|
+
// invisible to `bun dev` / `npm run dev`, because bun puts node_modules/.bin
|
|
53
|
+
// first on PATH and the script resolves THIS shim → the published prebuilt.
|
|
54
|
+
// Point PYLON_BIN at your build to test a fix before it ships:
|
|
55
|
+
// PYLON_BIN=$HOME/.cargo/bin/pylon bun dev
|
|
56
|
+
const override = process.env.PYLON_BIN;
|
|
57
|
+
if (override) {
|
|
58
|
+
if (!existsSync(override)) {
|
|
59
|
+
throw new Error(
|
|
60
|
+
`@pylonsync/cli: PYLON_BIN is set to "${override}" but no file ` +
|
|
61
|
+
`exists there.`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
return override;
|
|
65
|
+
}
|
|
66
|
+
|
|
50
67
|
const key = `${process.platform}-${process.arch}`;
|
|
51
68
|
const pkg = PLATFORM_PACKAGES[key];
|
|
52
69
|
if (!pkg) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pylonsync/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.276",
|
|
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,7 +25,7 @@
|
|
|
25
25
|
"node": ">=18"
|
|
26
26
|
},
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"@pylonsync/cli-darwin-arm64": "0.3.
|
|
29
|
-
"@pylonsync/cli-linux-x64": "0.3.
|
|
28
|
+
"@pylonsync/cli-darwin-arm64": "0.3.276",
|
|
29
|
+
"@pylonsync/cli-linux-x64": "0.3.276"
|
|
30
30
|
}
|
|
31
31
|
}
|