It would be nice if tsup
could pick up automatically the source files defined in the tsconfig.json
.
Even if there are several ways in tsconfig.json
for defining source files, there are all merged in the tsConfig.fileNames
property after the parsing phase.
Today, to achieve this, I add a custom tsup.config.mjs
to my projects. You can see it here:
https://github.com/fox1t/typescript-microservice-starter/blob/master/tsup.config.mjs#L10
The only drawback in shipping this in tsup directly is that typescript
must be installed to parse the config file. However, we can mitigate it by adding a new flag to instruct tsup
to pick entry
from tsConfig.fileNames.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too