Build and pack typed ESM/CJS libraries, then verify imports from a consumer project.
Build and diagnose TypeScript library packages using tsup 8, including ESM/CJS exports, declaration files, dependency externalization, and packed consumer verification. Use for an existing tsup build rather than application bundler or migration selection.