@bagelink/blox 1.15.575 → 1.15.579
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/ssg/cli.cjs +7 -3
- package/dist/ssg/cli.mjs +7 -3
- package/dist/vite-plugin.cjs +3 -2
- package/dist/vite-plugin.d.ts.map +1 -1
- package/dist/vite-plugin.mjs +3 -2
- package/package.json +1 -1
package/dist/ssg/cli.cjs
CHANGED
|
@@ -278,9 +278,13 @@ ${"=".repeat(60)}`);
|
|
|
278
278
|
}
|
|
279
279
|
if (productionBuild && shardTotal === 1) {
|
|
280
280
|
const uploadWebsiteId = ((_b = process.env.BLOX_WEBSITE_ID) == null ? void 0 : _b.trim()) || websiteId;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
const manifestExists = await fs.stat("dist/.blox-manifest.json").then(() => true, () => false);
|
|
282
|
+
if (uploadWebsiteId && manifestExists) {
|
|
283
|
+
await llmArtifacts.uploadBloxManifest(apiBase, uploadWebsiteId, buildRequest);
|
|
284
|
+
console.log("Uploaded .blox-manifest.json with Git provenance");
|
|
285
|
+
} else {
|
|
286
|
+
console.log("Skipped Blox manifest upload (website ID or manifest is unavailable)");
|
|
287
|
+
}
|
|
284
288
|
}
|
|
285
289
|
} catch (err) {
|
|
286
290
|
console.error("Fatal error:", err);
|
package/dist/ssg/cli.mjs
CHANGED
|
@@ -277,9 +277,13 @@ ${"=".repeat(60)}`);
|
|
|
277
277
|
}
|
|
278
278
|
if (productionBuild && shardTotal === 1) {
|
|
279
279
|
const uploadWebsiteId = ((_b = process.env.BLOX_WEBSITE_ID) == null ? void 0 : _b.trim()) || websiteId;
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
280
|
+
const manifestExists = await fs.stat("dist/.blox-manifest.json").then(() => true, () => false);
|
|
281
|
+
if (uploadWebsiteId && manifestExists) {
|
|
282
|
+
await uploadBloxManifest(apiBase, uploadWebsiteId, buildRequest);
|
|
283
|
+
console.log("Uploaded .blox-manifest.json with Git provenance");
|
|
284
|
+
} else {
|
|
285
|
+
console.log("Skipped Blox manifest upload (website ID or manifest is unavailable)");
|
|
286
|
+
}
|
|
283
287
|
}
|
|
284
288
|
} catch (err) {
|
|
285
289
|
console.error("Fatal error:", err);
|
package/dist/vite-plugin.cjs
CHANGED
|
@@ -232,7 +232,7 @@ function bloxPlugin(options = {}) {
|
|
|
232
232
|
logLevel: "silent",
|
|
233
233
|
server: { middlewareMode: true, hmr: false },
|
|
234
234
|
resolve: { alias: resolvedAliases },
|
|
235
|
-
ssr: { noExternal:
|
|
235
|
+
ssr: { noExternal: ["@bagelink/vue", "@bagelink/blox"] },
|
|
236
236
|
plugins: [
|
|
237
237
|
{
|
|
238
238
|
name: "vite-plugin-blox-manifest-entry",
|
|
@@ -267,7 +267,8 @@ function bloxPlugin(options = {}) {
|
|
|
267
267
|
const count = ((_a = manifest.blocks) == null ? void 0 : _a.length) ?? 0;
|
|
268
268
|
console.log(`[vite-plugin-blox-manifest] wrote ${count} blocks -> ${path.join(outDir, fileName)}`);
|
|
269
269
|
} catch (e) {
|
|
270
|
-
|
|
270
|
+
const error = e;
|
|
271
|
+
console.warn("[vite-plugin-blox-manifest] failed to emit manifest:", error.stack ?? error.message);
|
|
271
272
|
} finally {
|
|
272
273
|
await server.close();
|
|
273
274
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../src/vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,MAAM,CAAA;AAM9C,MAAM,WAAW,iBAAiB;IACjC;;;;;OAKG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IACb;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../src/vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,MAAM,CAAA;AAM9C,MAAM,WAAW,iBAAiB;IACjC;;;;;OAKG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IACb;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,MAAM,EAAE,CA+hBpE"}
|
package/dist/vite-plugin.mjs
CHANGED
|
@@ -208,7 +208,7 @@ function bloxPlugin(options = {}) {
|
|
|
208
208
|
logLevel: "silent",
|
|
209
209
|
server: { middlewareMode: true, hmr: false },
|
|
210
210
|
resolve: { alias: resolvedAliases },
|
|
211
|
-
ssr: { noExternal:
|
|
211
|
+
ssr: { noExternal: ["@bagelink/vue", "@bagelink/blox"] },
|
|
212
212
|
plugins: [
|
|
213
213
|
{
|
|
214
214
|
name: "vite-plugin-blox-manifest-entry",
|
|
@@ -243,7 +243,8 @@ function bloxPlugin(options = {}) {
|
|
|
243
243
|
const count = ((_a = manifest.blocks) == null ? void 0 : _a.length) ?? 0;
|
|
244
244
|
console.log(`[vite-plugin-blox-manifest] wrote ${count} blocks -> ${join(outDir, fileName)}`);
|
|
245
245
|
} catch (e) {
|
|
246
|
-
|
|
246
|
+
const error = e;
|
|
247
|
+
console.warn("[vite-plugin-blox-manifest] failed to emit manifest:", error.stack ?? error.message);
|
|
247
248
|
} finally {
|
|
248
249
|
await server.close();
|
|
249
250
|
}
|
package/package.json
CHANGED