fix(infra): emit declarations for rebuild:types (SD-2925)#3109
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
🎉 This PR is included in @superdoc-dev/mcp v0.3.0-next.37 The release is available on GitHub release |
|
🎉 This PR is included in vscode-ext v2.3.0-next.81 |
|
🎉 This PR is included in @superdoc-dev/react v1.2.0-next.79 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-cli v0.8.0-next.55 The release is available on GitHub release |
|
🎉 This PR is included in superdoc v1.30.0-next.38 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-sdk v1.8.0-next.40 |
|
🎉 This PR is included in superdoc-cli v0.9.0 The release is available on GitHub release |
|
🎉 This PR is included in superdoc v1.32.0 The release is available on GitHub release |
|
🎉 This PR is included in @superdoc-dev/mcp v0.4.0 The release is available on GitHub release |
|
🎉 This PR is included in @superdoc-dev/react v1.3.0 The release is available on GitHub release |
|
🎉 This PR is included in vscode-ext v2.4.0 |
|
🎉 This PR is included in superdoc-sdk v1.9.0 |
What changed
@superdoc/geometry-utilsand@superdoc/dom-contractemit declaration artifacts during their package build.dist/so deleting generated output also resets incremental state.pnpm run rebuild:typesenough that declaration producers build before@superdoc/painter-dom, avoiding thelayout-bridge/painter-domcycle race.Why
pnpm run rebuild:typesfailed in a clean worktree because@superdoc/measuring-domproject-references@superdoc/geometry-utilsand expectsgeometry-utils/dist/index.d.tsto exist. The package tsconfig declared composite declaration output, but the build script used--noEmit, so the referenced declaration output was never written.After fixing
geometry-utils, the same mismatch surfaced for@superdoc/dom-contract, and the root rebuild script could still runpainter-dombeforelayout-bridgehad emitted its declarations. This PR fixes the declaration producers and the rebuild ordering.Verification
pnpm run rebuild:typespnpm run type-checkgit diff --check