timocov/dts-bundle-generator
A tool to generate a single bundle of dts with types tree-shaking
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
📦 Single .d.ts bundle from many .ts files, tree-shaking unused types
Tree-shake dead types out of your bundle.
timocov builds dts-bundle-generator. Tool merges many .ts files into one .d.ts. Tree-shaking strips types entry file never exports. Result: clean, minimal definition file for publishing.
✨ Highlights
- Tree-shaking: strips types not exported from entry file.
- Single bundle: merges multiple .ts files into one .d.ts.
- External inlining: inline typings from specified node_modules packages.
- UMD support: emit
export as namespacewhen--umd-module-nameset. - Config file: load options from a config file via
--config. - No banner: remove generator comment from output with
--no-banner. - Sort output: order declarations alphabetically with
--sort. - Skip validation: bypass generated d.ts checks with
--no-check.
💡 Why it matters
Most d.ts generators dump every type into output. dts-bundle-generator tree-shakes, keeps only exports reachable from entry. Output stays small, clean. Fits publishing libraries, internal packages, any project needing single .d.ts file.
Supports tsconfig, external inlining, UMD names, config files. Works in CI pipelines. Run via CLI or integrate as library. Saves manual trimming, avoids dead types in published definitions.
#TypeScript #DTS #TreeShaking #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
The repository for high quality TypeScript type definitions.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
An enterprise-class UI design language and React UI library
Open-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
A progressive TypeScript framework for Node.js backends: from a small API in one file to efficient, scalable, enterprise-grade systems 🚀