Commit 5d7eabc
#8063 aliased two workspace deps to source in this package's first
`vitest.config.ts`. The other three — `@objectstack/spec`,
`@objectstack/platform-objects`, `@objectstack/types` — stayed on their
`KNOWN_UNALIASED_TEST_IMPORTS` entry and kept resolving through `exports` to
`dist/`. They are now aliased to source and the registry entry is deleted.
17 of this package's 20 test files were really reading the artifact: with the
three `dist/` trees removed and the pre-#8104 config in place, 17 files fail to
load and only 58 of 413 cases run. With the aliases, the same tree with no
`spec`/`platform-objects`/`types` build output passes 413/413.
The subpath entry points were the actual work. This package imports no bare
`@objectstack/spec` and no bare `@objectstack/platform-objects` at run time —
every reachable specifier for those two is a subpath (`spec/api`,
`spec/contracts`, `spec/data`, `spec/system`, `platform-objects/system`, plus
`spec/security` reached transitively through `types`). The object alias form
would swallow them into `…/index.ts/<sub>` (`ENOTDIR`, #7778); the anchored bare
form #8063 established does not swallow them but does not cover them either, so
copying that shape would have left every one of them on `dist` with the registry
entry undeletable.
So `spec` takes the one-rule-for-all-namespaces capture form, its export map
being uniform, while `platform-objects` takes an explicit `/system` entry
because its map is not (`./plugin` is `src/plugin.ts`, a file, so a `([a-z-]+)`
rule would invent `src/plugin/index.ts`). `plugin-audit` writes its
`platform-objects/audit` entry the same way.
The registry deletion is half the change: the entry is audited for set equality
in both directions, so aliases-complete-with-entry-present and
entry-deleted-with-aliases-incomplete each fail the gate. It reads OK at 61
registered packages, down from 62.
413 passed / 20 files, unchanged from baseline. No change under `src/`.
Claude-Session: https://claude.ai/code/session_01SMN7p2W62YzA3bY7BaFv3r
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 43f37e1 commit 5d7eabc
3 files changed
Lines changed: 112 additions & 9 deletions
File tree
- .changeset
- packages/services/service-settings
- scripts
Lines changed: 61 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
24 | 35 | | |
25 | 36 | | |
26 | 37 | | |
| |||
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
46 | 91 | | |
47 | 92 | | |
48 | 93 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | 305 | | |
309 | 306 | | |
310 | 307 | | |
| |||
0 commit comments