Commit 3dd6c87
authored
ci: add verify-types job to prevent missing typings on publish (#1576)
## Summary
Preventive measures to avoid a repeat of #1573.
### CI: new `verify-types` job
Adds a dedicated CI job that runs `npm run build:types` in parallel with
unit tests on every PR. If type declaration generation fails, the build
fails before merge.
### Remove `scripts/prepack.js`
This file originally existed to flatten rpt2's output — rpt2 dumped
declarations into `dist/typings/src/` instead of `dist/typings/`, so the
script moved them up before publish.
Since #1574 moved declaration generation to `tsc --project
tsconfig.types.json`, this script became dead code. `tsc` outputs
directly to `dist/typings/` with no `src/` subdirectory. More
importantly, if `tsc` fails it exits non-zero — stopping the `prepack`
chain and blocking publish. A separate guard file adds nothing on top of
that.
`prepack` simplified from:
```
npm run build && npm run build:types && node ./scripts/prepack
```
to:
```
npm run build && npm run build:types
```1 parent 3784ed2 commit 3dd6c87
3 files changed
Lines changed: 27 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
81 | 107 | | |
82 | 108 | | |
83 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
This file was deleted.
0 commit comments