@lakitu/sdk 0.1.14 → 0.1.16
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../cli/commands/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../cli/commands/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuQD,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,iBAiBhD"}
|
|
@@ -89,6 +89,11 @@ async function prebuildConvex() {
|
|
|
89
89
|
}
|
|
90
90
|
catch { /* not running */ }
|
|
91
91
|
console.log("Starting local convex-backend...");
|
|
92
|
+
// Filter out Bun's node shim from PATH so convex-backend finds real Node.js
|
|
93
|
+
const cleanPath = (process.env.PATH || "")
|
|
94
|
+
.split(":")
|
|
95
|
+
.filter(p => !p.includes("bun-node-"))
|
|
96
|
+
.join(":");
|
|
92
97
|
// Start convex-backend in background
|
|
93
98
|
const backend = spawn("convex-backend", [
|
|
94
99
|
join(stateDir, "convex_local_backend.sqlite3"),
|
|
@@ -98,6 +103,7 @@ async function prebuildConvex() {
|
|
|
98
103
|
], {
|
|
99
104
|
cwd: stateDir,
|
|
100
105
|
stdio: "pipe",
|
|
106
|
+
env: { ...process.env, PATH: cleanPath },
|
|
101
107
|
});
|
|
102
108
|
// Wait for backend to be ready
|
|
103
109
|
console.log("Waiting for backend to be ready...");
|
|
@@ -124,11 +130,10 @@ CONVEX_SELF_HOSTED_ADMIN_KEY=0135d8598650f8f5cb0f30c34ec2e2bb62793bc28717c8eb6fb
|
|
|
124
130
|
`);
|
|
125
131
|
try {
|
|
126
132
|
// Run from package root where convex.json is (specifies functions: "convex/sandbox")
|
|
127
|
-
|
|
128
|
-
execSync(`/bin/bash -l -c 'npx convex dev --once --typecheck disable --env-file ${tempEnvFile}'`, {
|
|
133
|
+
execSync(`npx convex dev --once --typecheck disable --env-file ${tempEnvFile}`, {
|
|
129
134
|
cwd: PACKAGE_ROOT,
|
|
130
135
|
stdio: "inherit",
|
|
131
|
-
env: { ...process.env, CONVEX_DEPLOYMENT: undefined },
|
|
136
|
+
env: { ...process.env, CONVEX_DEPLOYMENT: undefined, PATH: cleanPath },
|
|
132
137
|
});
|
|
133
138
|
console.log("Functions deployed successfully!");
|
|
134
139
|
}
|