dts-minify
JSON →Minifier for TypeScript declaration files (.d.ts). Strips non-essential whitespace, newlines, and comments (preserving triple-slash directives) to reduce file size. Current stable version is 0.3.3. Released on both npm and JSR, maintained by dsherret. Designed for projects where .d.ts files are not read by humans, such as bundling for libraries. Differentiates by being lightweight and focused solely on .d.ts minification, unlike general-purpose minifiers.
Resources
packagedts-minify ↗