supabase 2.99.0-beta.5 → 2.99.0-beta.6
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 +4 -2
- package/dist/supabase.js +9 -7
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -87,8 +87,10 @@ pnpm build:shim
|
|
|
87
87
|
Output in `dist/`:
|
|
88
88
|
|
|
89
89
|
- `dist/supabase.js` — base shim that routes to the correct platform binary
|
|
90
|
-
- `dist/
|
|
91
|
-
- `dist/
|
|
90
|
+
- `dist/supabase-next` — next shell compiled binary (Bun single-file executable for the host platform)
|
|
91
|
+
- `dist/supabase-legacy` — legacy shell compiled binary (Bun single-file executable for the host platform)
|
|
92
|
+
|
|
93
|
+
The shim resolves `SUPABASE_CLI_BINARY_OVERRIDE` (an absolute binary path) before falling back to the `@supabase/cli-<platform>` optional-dependency lookup. The e2e test harness uses this override to invoke the real shim + compiled binary handoff against the per-shell builds in `dist/`.
|
|
92
94
|
|
|
93
95
|
### Platform releases (Bun single-file executables)
|
|
94
96
|
|
package/dist/supabase.js
CHANGED
|
@@ -22,13 +22,15 @@ if (!candidates)
|
|
|
22
22
|
throw new Error(`Unsupported architecture: ${os.arch()} on ${process.platform}`);
|
|
23
23
|
var ext = process.platform === "win32" ? ".exe" : "";
|
|
24
24
|
var require2 = createRequire(import.meta.url);
|
|
25
|
-
var binPath;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
var binPath = process.env["SUPABASE_CLI_BINARY_OVERRIDE"];
|
|
26
|
+
if (!binPath) {
|
|
27
|
+
for (const suffix of candidates) {
|
|
28
|
+
try {
|
|
29
|
+
const pkgPath = path.dirname(require2.resolve(`@supabase/cli-${suffix}/package.json`));
|
|
30
|
+
binPath = path.join(pkgPath, "bin", `supabase${ext}`);
|
|
31
|
+
break;
|
|
32
|
+
} catch {}
|
|
33
|
+
}
|
|
32
34
|
}
|
|
33
35
|
if (!binPath) {
|
|
34
36
|
throw new Error(`No matching Supabase CLI binary package found for ${process.platform}-${os.arch()}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supabase",
|
|
3
|
-
"version": "2.99.0-beta.
|
|
3
|
+
"version": "2.99.0-beta.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Supabase CLI",
|
|
6
6
|
"homepage": "https://github.com/supabase/cli#readme",
|
|
@@ -49,19 +49,19 @@
|
|
|
49
49
|
"oxlint-tsgolint": "^0.21.1",
|
|
50
50
|
"react-devtools-core": "^7.0.1",
|
|
51
51
|
"vitest": "^4.1.5",
|
|
52
|
+
"@supabase/config": "0.1.0",
|
|
52
53
|
"@supabase/api": "0.1.0",
|
|
53
|
-
"@supabase/stack": "0.1.0"
|
|
54
|
-
"@supabase/config": "0.1.0"
|
|
54
|
+
"@supabase/stack": "0.1.0"
|
|
55
55
|
},
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"@supabase/cli-darwin-
|
|
58
|
-
"@supabase/cli-darwin-
|
|
59
|
-
"@supabase/cli-linux-arm64": "2.99.0-beta.
|
|
60
|
-
"@supabase/cli-linux-x64": "2.99.0-beta.
|
|
61
|
-
"@supabase/cli-linux-
|
|
62
|
-
"@supabase/cli-
|
|
63
|
-
"@supabase/cli-windows-x64": "2.99.0-beta.
|
|
64
|
-
"@supabase/cli-
|
|
57
|
+
"@supabase/cli-darwin-x64": "2.99.0-beta.6",
|
|
58
|
+
"@supabase/cli-darwin-arm64": "2.99.0-beta.6",
|
|
59
|
+
"@supabase/cli-linux-arm64": "2.99.0-beta.6",
|
|
60
|
+
"@supabase/cli-linux-x64": "2.99.0-beta.6",
|
|
61
|
+
"@supabase/cli-linux-x64-musl": "2.99.0-beta.6",
|
|
62
|
+
"@supabase/cli-windows-arm64": "2.99.0-beta.6",
|
|
63
|
+
"@supabase/cli-windows-x64": "2.99.0-beta.6",
|
|
64
|
+
"@supabase/cli-linux-arm64-musl": "2.99.0-beta.6"
|
|
65
65
|
},
|
|
66
66
|
"release": {
|
|
67
67
|
"branches": [
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
},
|
|
122
122
|
"scripts": {
|
|
123
123
|
"build": "pnpm build:next && pnpm build:legacy && pnpm build:shim",
|
|
124
|
-
"build:next": "bun build src/next/main.ts --outfile dist/
|
|
125
|
-
"build:legacy": "bun build src/legacy/main.ts --outfile dist/
|
|
124
|
+
"build:next": "bun build src/next/main.ts --compile --outfile dist/supabase-next",
|
|
125
|
+
"build:legacy": "bun build src/legacy/main.ts --compile --outfile dist/supabase-legacy",
|
|
126
126
|
"build:shim": "bun build src/shared/cli/bin.ts --outfile dist/supabase.js --target node",
|
|
127
127
|
"dev:next": "pnpm exec bun src/next/main.ts",
|
|
128
128
|
"dev:legacy": "pnpm exec bun src/legacy/main.ts",
|