@lakitu/sdk 0.1.10 → 0.1.12
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;AAwQD,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,iBAiBhD"}
|
|
@@ -207,11 +207,18 @@ async function buildCustom(apiKey, baseId) {
|
|
|
207
207
|
console.log("📦 Preparing build context...");
|
|
208
208
|
rmSync(buildDir, { recursive: true, force: true });
|
|
209
209
|
mkdirSync(buildDir, { recursive: true });
|
|
210
|
-
// Copy lakitu source (excluding node_modules, .git, template, cli)
|
|
210
|
+
// Copy lakitu source (excluding node_modules, .git, template, cli, dist, .env*)
|
|
211
211
|
const excludes = ["node_modules", ".git", "template", "cli", "dist"];
|
|
212
212
|
cpSync(PACKAGE_ROOT, join(buildDir, "lakitu"), {
|
|
213
213
|
recursive: true,
|
|
214
|
-
filter: (src) =>
|
|
214
|
+
filter: (src) => {
|
|
215
|
+
// Get path relative to PACKAGE_ROOT to avoid matching parent directories
|
|
216
|
+
const rel = src.slice(PACKAGE_ROOT.length);
|
|
217
|
+
// Exclude .env files (convex creates .env.local during build)
|
|
218
|
+
if (rel.includes(".env"))
|
|
219
|
+
return false;
|
|
220
|
+
return !excludes.some(ex => rel.includes(`/${ex}`));
|
|
221
|
+
},
|
|
215
222
|
});
|
|
216
223
|
// Copy user's project KSAs from lakitu/ folder (if exists)
|
|
217
224
|
const userKsaDir = join(process.cwd(), "lakitu");
|