@teamscala/service-boot 0.23.435 → 0.23.436
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/package.json +1 -1
- package/src/discover-blocks.ts +11 -1
package/package.json
CHANGED
package/src/discover-blocks.ts
CHANGED
|
@@ -58,7 +58,17 @@ export async function discoverBlocks(
|
|
|
58
58
|
const isInstalled = async (pkg: string): Promise<boolean> => {
|
|
59
59
|
const cached = installedCache.get(pkg);
|
|
60
60
|
if (cached !== undefined) return cached;
|
|
61
|
-
|
|
61
|
+
// Probe the package's package.json, NOT its directory. Bun.file() on a
|
|
62
|
+
// DIRECTORY reports exists() === false, so the previous directory probe
|
|
63
|
+
// answered "not installed" for every package that was in fact installed
|
|
64
|
+
// — and because this predicate gates every block below, that skipped
|
|
65
|
+
// every block and booted the service with zero Puck components. Measured
|
|
66
|
+
// 2026-09-01: scala-portal, scala-public, scala-forms and scala-projects
|
|
67
|
+
// all FATAL at ui-service.page-manifest with their packages present on
|
|
68
|
+
// disk at the expected versions. A file probe is the correct shape.
|
|
69
|
+
const ok = await Bun.file(
|
|
70
|
+
join(serviceModules, ...pkg.split("/"), "package.json"),
|
|
71
|
+
).exists();
|
|
62
72
|
installedCache.set(pkg, ok);
|
|
63
73
|
return ok;
|
|
64
74
|
};
|