Replaces #11877, #11878, #11879 and #11880, which waited for scripts/unused-exports.ts and scripts/unused-exports-allow.json. Both are now on main.
Done looks like, one commit per area, in one or two pulls:
For each area, every allow-list entry is either deleted along with its dead code or kept with a one-line reason. bun scripts/unused-exports.ts passes with the shorter list, and bun test stays green.
Risk: an export used only by tests is not dead. Keep it, and say so in the reason.
Replaces #11877, #11878, #11879 and #11880, which waited for
scripts/unused-exports.tsandscripts/unused-exports-allow.json. Both are now on main.Done looks like, one commit per area, in one or two pulls:
For each area, every allow-list entry is either deleted along with its dead code or kept with a one-line reason.
bun scripts/unused-exports.tspasses with the shorter list, andbun teststays green. Risk: an export used only by tests is not dead. Keep it, and say so in the reason.