Commit 8c82289
#13123 sealed the CLI behind an `exports` map, and its own body names the
remedy for a consumer that was reading `dist/` paths: ratify the subpath as
public surface rather than keep the deep read. That consumer exists — cloud's
`objectos-runtime` node server mounts the Console SPA through the CLI's
self-contained static-serve util (`resolveConsolePath` / `hasConsoleDist` /
`createConsoleStaticPlugin`, fs/path only, no oclif) via what was
`@objectstack/cli/dist/utils/console.js`. Under the sealed map that specifier
throws ERR_PACKAGE_PATH_NOT_EXPORTED at BOTH layers: tsup's DTS build refuses
(TS2307), and at runtime the consumer's defensive catch silently degrades
every boot to API-only — a working deployment loses its console with nothing
but a warn line.
`./console` maps to exactly the module that was being consumed
(`dist/utils/console.{js,d.ts}`), so the surface grows by one deliberate
door, not back to "everything under dist/". check:published-files' GATED
invariant stays green (the map still names real entries), and the census
floor is untouched.
Gates run at this head: full 71-package build, full-repo lint,
check:published-files, check-empty-changeset — all exit 0.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 575ce83 commit 8c82289
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
0 commit comments