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
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
Right now there's a
--dts-only
flag that allows tsup to be used to only rundts
. But I can't find a way to run withoutdts
when the config file (tsup.config.ts
) hasdts: true
.Can that be added in?Context: https://github.com/JoshuaKGoldberg/create-typescript-app/issues/1162. I have a repo with a singletsup.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 -especiallyclean
andoutDir
- are present intsup.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