Commit 9140c76
* feat(devx): sweep the built closure for vanished declarations after the workspace build
`scripts/check-dts-emitted.mjs` runs per package, immediately after that
package's own `tsup`, and is the last thing that ever looks. On #15042's
observation it reported `3/3 declared declaration file(s) present` and the
files were gone later in the same tree, with no second build and no `rm`.
Adds `scripts/check-dts-closure.mjs`: a sibling that re-reads the whole built
workspace once, AFTER the closure build. The derivation is imported from the
per-package guard, not re-written, so the per-package contract is untouched
and there is still one answer to "which declarations does this manifest
promise". Exit 1 names the package and each missing file; exit 3
PREREQUISITE NOT MET when no package has a `dist/` at all, never a pass.
Wired as `check:dts-closure` and run directly after the closure build in
lint.yml's two full-closure lanes and ci.yml's `build-core`.
Does not touch any `tsup.config.ts` `clean` semantics and makes no claim
about what deleted the files.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk
* fix(devx): the closure sweep's self-test names its failure instead of crashing
Ablating the sweep predicate (`if (missing.length > 0)` -> `if (false)`) made
the self-test exit 1 through a TypeError on `findings[0].missing`, so the
named case that had already failed never reached the report. The optional
read keeps the exit code and restores the diagnostic.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3508869 commit 9140c76
4 files changed
Lines changed: 626 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1492 | 1492 | | |
1493 | 1493 | | |
1494 | 1494 | | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
1495 | 1508 | | |
1496 | 1509 | | |
1497 | 1510 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5014 | 5014 | | |
5015 | 5015 | | |
5016 | 5016 | | |
| 5017 | + | |
| 5018 | + | |
| 5019 | + | |
| 5020 | + | |
| 5021 | + | |
| 5022 | + | |
| 5023 | + | |
| 5024 | + | |
| 5025 | + | |
| 5026 | + | |
| 5027 | + | |
| 5028 | + | |
| 5029 | + | |
5017 | 5030 | | |
5018 | 5031 | | |
5019 | 5032 | | |
| |||
5189 | 5202 | | |
5190 | 5203 | | |
5191 | 5204 | | |
| 5205 | + | |
| 5206 | + | |
| 5207 | + | |
| 5208 | + | |
| 5209 | + | |
| 5210 | + | |
| 5211 | + | |
| 5212 | + | |
| 5213 | + | |
| 5214 | + | |
| 5215 | + | |
| 5216 | + | |
| 5217 | + | |
5192 | 5218 | | |
5193 | 5219 | | |
5194 | 5220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments