@solcreek/adapter-creek 0.2.2 → 0.2.3
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/build.js +13 -2
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -340,8 +340,19 @@ export async function handleBuild(ctx) {
|
|
|
340
340
|
// exposes these per-output as `output.assets` (the result of file tracing).
|
|
341
341
|
// We embed them in __USER_FILES so the fs shim can serve them in workerd.
|
|
342
342
|
const userFiles = await collectUserFiles(ctx.outputs, ctx.distDir, ctx.projectDir);
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
const userFilePaths = Object.keys(userFiles).sort();
|
|
344
|
+
if (userFilePaths.length > 0) {
|
|
345
|
+
// List the paths: these are non-code files your routes read at runtime
|
|
346
|
+
// (file-traced from your code), embedded so the workerd fs shim can serve
|
|
347
|
+
// them. Listing them lets you spot anything unexpected (e.g. a stray .env).
|
|
348
|
+
console.log(` [Creek Adapter] ${userFilePaths.length} user data files embedded (files read at runtime via fs):`);
|
|
349
|
+
const SHOWN = 30;
|
|
350
|
+
for (const p of userFilePaths.slice(0, SHOWN)) {
|
|
351
|
+
console.log(` - ${p}`);
|
|
352
|
+
}
|
|
353
|
+
if (userFilePaths.length > SHOWN) {
|
|
354
|
+
console.log(` ... and ${userFilePaths.length - SHOWN} more`);
|
|
355
|
+
}
|
|
345
356
|
}
|
|
346
357
|
// Step 4: Generate worker entry
|
|
347
358
|
console.log(" [Creek Adapter] Scanning external modules...");
|