Rollup + ESBundle.
This library is intentionally kept simple, if you want customizations please use Rollup directly.
Install it locally in your project folder:
npm i tsup -D
# Or Yarn
yarn add tsup --devYou can also install it globally but it's not recommended.
tsup [...files]Files are written into ./dist.
tsup index.ts --dtsThis will emit ./dist/index.js and ./dist/index.d.ts.
tsup [...files] --bundleWhen you're bundling a lot files, this can be 10x~200x slower than ESBuild.
tsup run main.tsFor more details:
tsup --helpMIT © EGOIST (Kevin Titor)