egoist / tsup

The simplest and fastest way to bundle your TypeScript libraries.
https://tsup.egoist.dev
MIT License
8.48k stars 209 forks source link

[Docs] Mention --no-dts somewhere? #1070

Open JoshuaKGoldberg opened 6 months ago

JoshuaKGoldberg commented 6 months ago

Right now there's a --dts-only flag that allows tsup to be used to only run dts. But I can't find a way to run without dts when the config file (tsup.config.ts) has dts: true. Can that be added in?

Context: https://github.com/JoshuaKGoldberg/create-typescript-app/issues/1162. I have a repo with a single tsup.config.ts that needs to build .js files from .ts sources before linting. It'd be nice to just run the build using whatever configurations -especially clean and outDir- are present in tsup.config.ts... but not have to incur the speed penalty of type checking.

Edit: I just discovered --no-dts! But it's not mentioned anywhere on the site. Would you accept a PR mentioning it ...somewhere?

Upvote & Fund

Fund with Polar