A CLI tool to minify DTS files based on dts-minify.
deno install --reload -f jsr:@lino/dts-minify-cli --name dts-minify
By default, dts-minify
will read stdin and write to stdout.
dts-minify < input.d.ts > output.d.ts
You can also specify an input file and an output file.
dts-minify --input-file input.d.ts --output-file output.d.ts
If you'd like, you can also specify whether you'd like to keep jsdoc comments or not.
dts-minify --keep-jsdoc --input-file input.d.ts --output-file output.d.ts