You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stop committing types/: generate it in build:ci and prepack #211
priority: mediumShould be addressed in the normal course of developmentstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: enhancementAn improvement to existing functionality without adding a new feature
Generated declarations shouldn't be committed. types/ is tracked here today (40 files), and the config sets rewriteDeclarationCopies: false only so fix-headers and tsc stop rewriting each other's @Filename in the committed copy.
gitignore types/ and git rm --cached the tracked files
types:build runs tsc and then stamps headers on its output, so each declaration names the file it ships as. In this repo that's node --conditions=fix-headers-dev ./src/cli.mjs --config .configs/fix-headers.json --input types (the package's own CLI from source)
prepack runs types:build before build, so a publish always ships fresh declarations; build:ci already runs types:build
drop "rewriteDeclarationCopies": false from .configs/fix-headers.json, so the default restamp applies
anything that expects types/ in a fresh checkout (the integration test's entry-point check reads types/index.d.mts from the repo) builds it first or is changed
priority: mediumShould be addressed in the normal course of developmentstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: enhancementAn improvement to existing functionality without adding a new feature
Activity
build: generate types/ at build and pack time instead of committing it
build: generate types/ at build and pack time instead of committing it (
cldmv-bot commentedon Nov 27, 2026
Marked
status: implemented— resolved by #215, merged intonext. This issue closes automatically when that work ships to the default branch.release: v2.6.0 - adopt the generic CJS shim