Problem
Today an emit-only TS4023 regression—exported factories referencing an unexported type (#150 / #174)—surfaced only as:
error Failed to generate declaration files. (agent-bundle-index)
[{"code":"AB5000","message":"Error occurred in agent-bundle-index declaration files generation."}]
The five underlying TS4023 diagnostics were hidden by rslib's one-line error.
This creates two DX problems:
- It conflates declaration-build failures with AB5000's dev-lock meaning ("another dev process owns this project"), which misled initial triage.
- It forced a manual
tsc --declaration --emitDeclarationOnly replay to reveal the actual errors.
Requested improvements
- Surface the underlying TypeScript diagnostics—including file, line, and diagnostic code—through the declaration-build failure path.
- Give declaration-build failures their own AB code instead of using the AB5000 catch-all.
- Add a hint that emit-only errors can be invisible to
--noEmit.
See #174's root-cause writeup for the concrete regression and diagnosis.
Problem
Today an emit-only TS4023 regression—exported factories referencing an unexported type (#150 / #174)—surfaced only as:
The five underlying TS4023 diagnostics were hidden by rslib's one-line error.
This creates two DX problems:
tsc --declaration --emitDeclarationOnlyreplay to reveal the actual errors.Requested improvements
--noEmit.See #174's root-cause writeup for the concrete regression and diagnosis.