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
Option to rewrite headers on generated declarations for the layout they ship in #201
area: coreTouches core library / runtime source codepriority: 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
We're moving types/ out of git: it gets generated in CI and prepack, and fix-headers should then stamp the published declarations with their own header (@Filename: types/src/index.d.mts, the package's @Project). That's how lib-sqlite-wasm will work, and slothlet is moving there too (CLDMV/slothlet#1007), where types/src/** ships at the root of @cldmv/slothlet-types.
2.4.0 gets in the way of that: #196 always skips a .d.mts whose header names its own source, and there's no option to turn it off. So running fix-headers --input types after tsc leaves @Filename: src/index.mts in the shipped file.
What's needed:
An option (config + CLI) to rewrite those tsc-copied headers instead of skipping them. Keep the skip as the default for repos that still commit types/.
A way to set the path @Filename is relative to, for a staged package dir whose layout differs from the repo (slothlet-types: dist-packages/slothlet-types/lib/x.d.mts → lib/x.d.mts).
Dates for generated files: they're gitignored, so there's no git history and the file is created at build time. @Date / @Last modified time should come from the source file the declaration was generated from, not the build time.
area: coreTouches core library / runtime source codepriority: 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
feat: restamp tsc-copied declaration headers by default
feat: rewriteDeclarationCopies restamps tsc-copied declaration headers
feat: restamp tsc-copied declaration headers by default
feat: restamp tsc-copied declaration headers by default (#202)
cldmv-bot commentedon Nov 25, 2026
Marked
status: implemented— resolved by #202, merged intonext. This issue closes automatically when that work ships to the default branch.release: v2.5.0 - rewriteDeclarationCopies restamps tsc-copied…