supabase 2.115.0-beta.4 → 2.115.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/dist/supabase.js +26 -7
- package/package.json +11 -12
package/dist/supabase.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/shared/cli/bin.ts
|
|
4
|
-
import {
|
|
4
|
+
import { spawn } from "node:child_process";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
@@ -35,10 +35,29 @@ if (!binPath) {
|
|
|
35
35
|
if (!binPath) {
|
|
36
36
|
throw new Error(`No matching Supabase CLI binary package found for ${process.platform}-${os.arch()}`);
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
var child = spawn(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
39
|
+
var forwardedSignals = ["SIGINT", "SIGTERM", "SIGHUP"];
|
|
40
|
+
var forwarders = new Map;
|
|
41
|
+
for (const signal of forwardedSignals) {
|
|
42
|
+
const forward = () => {
|
|
43
|
+
if (child.exitCode === null && child.signalCode === null)
|
|
44
|
+
child.kill(signal);
|
|
45
|
+
};
|
|
46
|
+
process.on(signal, forward);
|
|
47
|
+
forwarders.set(signal, forward);
|
|
44
48
|
}
|
|
49
|
+
child.on("error", (error) => {
|
|
50
|
+
for (const [signal, forward] of forwarders)
|
|
51
|
+
process.removeListener(signal, forward);
|
|
52
|
+
throw error;
|
|
53
|
+
});
|
|
54
|
+
child.on("exit", (code, signal) => {
|
|
55
|
+
for (const [sig, forward] of forwarders)
|
|
56
|
+
process.removeListener(sig, forward);
|
|
57
|
+
if (signal !== null) {
|
|
58
|
+
process.kill(process.pid, signal);
|
|
59
|
+
setInterval(() => {}, 1000);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
process.exit(code ?? 1);
|
|
63
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supabase",
|
|
3
|
-
"version": "2.115.0-beta.
|
|
3
|
+
"version": "2.115.0-beta.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Supabase CLI",
|
|
6
6
|
"homepage": "https://github.com/supabase/cli#readme",
|
|
@@ -68,18 +68,18 @@
|
|
|
68
68
|
"yaml": "^2.9.0",
|
|
69
69
|
"@supabase/api": "0.1.0",
|
|
70
70
|
"@supabase/config": "0.1.0",
|
|
71
|
-
"@supabase/
|
|
72
|
-
"@supabase/
|
|
71
|
+
"@supabase/process-compose": "0.1.0",
|
|
72
|
+
"@supabase/stack": "0.1.0"
|
|
73
73
|
},
|
|
74
74
|
"optionalDependencies": {
|
|
75
|
-
"@supabase/cli-darwin-arm64": "2.115.0-beta.
|
|
76
|
-
"@supabase/cli-darwin-x64": "2.115.0-beta.
|
|
77
|
-
"@supabase/cli-linux-arm64": "2.115.0-beta.
|
|
78
|
-
"@supabase/cli-linux-arm64
|
|
79
|
-
"@supabase/cli-linux-x64
|
|
80
|
-
"@supabase/cli-
|
|
81
|
-
"@supabase/cli-windows-
|
|
82
|
-
"@supabase/cli-
|
|
75
|
+
"@supabase/cli-darwin-arm64": "2.115.0-beta.6",
|
|
76
|
+
"@supabase/cli-darwin-x64": "2.115.0-beta.6",
|
|
77
|
+
"@supabase/cli-linux-arm64-musl": "2.115.0-beta.6",
|
|
78
|
+
"@supabase/cli-linux-arm64": "2.115.0-beta.6",
|
|
79
|
+
"@supabase/cli-linux-x64": "2.115.0-beta.6",
|
|
80
|
+
"@supabase/cli-linux-x64-musl": "2.115.0-beta.6",
|
|
81
|
+
"@supabase/cli-windows-arm64": "2.115.0-beta.6",
|
|
82
|
+
"@supabase/cli-windows-x64": "2.115.0-beta.6"
|
|
83
83
|
},
|
|
84
84
|
"release": {
|
|
85
85
|
"branches": [
|
|
@@ -159,7 +159,6 @@
|
|
|
159
159
|
"build:next": "bun scripts/build-binary.ts next",
|
|
160
160
|
"build:legacy": "bun scripts/build-binary.ts legacy",
|
|
161
161
|
"build:shim": "bun build src/shared/cli/bin.ts --outfile dist/supabase.js --target node",
|
|
162
|
-
"generate:go-serve-template": "bun scripts/generate-go-serve-template.ts",
|
|
163
162
|
"docs:spec": "bun scripts/generate-docs-spec.ts",
|
|
164
163
|
"dev:next": "pnpm exec bun src/next/main.ts",
|
|
165
164
|
"dev:legacy": "pnpm exec bun src/legacy/main.ts",
|