Commit 4525eee
committed
tooling(verify,cli): resolve the new cross-package imports to SOURCE (#15229)
Both halves are what `check:test-source-alias` and `check:type-source-resolution`
prescribe for a dep a change newly reaches; neither registry is widened (both are
shrink-only, and widening is never the fix):
- `packages/verify/vitest.config.ts` gains its first `resolve.alias` — one
ANCHORED entry for `@objectstack/core`, which `artifact-collections.ts` now
imports and every test in the package reaches through `derive.ts` / `rls.ts`.
Without it those tests resolve core through its `exports` map to `dist/`, i.e.
they become verdicts about build state, and the dangerous half of that is a
suite that passes GREEN over a stale artifact.
- `packages/verify/tsconfig.json` gains the matching `paths` rule, and the
`rootDir` widening that pulling core's source into the program requires
(`packages/core/tsconfig.json`'s own precedent; emit is unaffected, this
package builds with tsup).
- `packages/cli/tsconfig.test.json` gains a FOURTH bare-name rule beside the
three #15004 added, for the `@objectstack/verify` the probe rows now import.
Bare names, no stars: `@objectstack/core` publishes a `./logger` subpath that
keeps resolving through its own `exports` map, and a starred rule would swallow
it and resolve it THROUGH a file (ENOTDIR).
Measured after: `pnpm check:test-source-alias` OK (72 packages scanned),
`pnpm check:type-source-resolution` OK (121 programs / 78 packages),
`pnpm --filter @objectstack/verify typecheck` and
`pnpm --filter @objectstack/cli typecheck` both clean, and the two suites the
alias re-resolves stay green: verify 58/58, the option-B pin 6/6.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UHvF5hyiZjnCyExFnfQB8m1 parent fdc04ea commit 4525eee
3 files changed
Lines changed: 59 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
145 | | - | |
146 | | - | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | | - | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
7 | 29 | | |
8 | 30 | | |
9 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
32 | 52 | | |
33 | 53 | | |
| 54 | + | |
| 55 | + | |
34 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
35 | 62 | | |
36 | 63 | | |
37 | 64 | | |
| |||
0 commit comments