Repository navigation
fix(package): ship the audit subpath in the published build - #120
Conversation
publishConfig already exports ./audit, but tsdown never compiled src/audit.ts, so dist/audit.js and dist/audit.d.ts were absent from the package tarball. Fixes #118 Co-authored-by: Kelly Peilin Chan <[email protected]>
|
Verification level: 🟢 Full verification — I independently built, packed, installed, imported, and typechecked the published Problem
Root cause
FixThe PR adds one entry, Validation
No screenshots: nothing user-visible changed, and verification did not go through a browser. |
Problem and fix
The package advertises
busabase-package/audit, but its build omits the entry files. Add the existing audit source to the build entry map so packed consumers receive both JavaScript and declarations.Validation
Built and packed the public source, installed its tarball into a fresh consumer with its own TypeScript, and compiled and executed real imports of
auditPackageandauditSkill. A valid parsed package has no findings; a mismatched directory produces the expectedpackage/identityfinding. Bothdist/audit.jsanddist/audit.d.tsare present and the packed export map points to them.Packed-consumer verification transcript and artifact checksum.
Known risk: none identified in the changed export path. No visual change.
Fixes #118