https://github.com/egoist/tsup
The simplest and fastest way to bundle your TypeScript libraries.
https://github.com/egoist/tsup
Last synced: 14 days ago
JSON representation
The simplest and fastest way to bundle your TypeScript libraries.
- Host: GitHub
- URL: https://github.com/egoist/tsup
- Owner: egoist
- License: mit
- Created: 2020-03-19T16:23:41.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T17:04:37.000Z (21 days ago)
- Last Synced: 2025-03-25T01:34:40.465Z (21 days ago)
- Language: TypeScript
- Homepage: https://tsup.egoist.dev
- Size: 2.06 MB
- Stars: 9,966
- Watchers: 33
- Forks: 244
- Open Issues: 355
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome - egoist/tsup - The simplest and fastest way to bundle your TypeScript libraries. (TypeScript)
- awesome - egoist/tsup - The simplest and fastest way to bundle your TypeScript libraries. (TypeScript)
- awesome-nextjs - Tsup - The tsup is the simplest and fastest way to bundle your TypeScript project with no configuration need. (Bundler)
- my-awesome-list - tsup
- awesome-github-star - tsup
- awesome-list - tsup
- awesome-node-esm - tsup - bundle your TypeScript library with no config, powered by esbuild. (Tools)
- awesome-esbuild - tsup
- awesome - tsup - Bundle JS/TS libraries, powered by [esbuild](https://github.com/evanw/esbuild). (Bundle Tool)
- awesome - egoist/tsup - The simplest and fastest way to bundle your TypeScript libraries. (TypeScript)
- awesome - egoist/tsup - The simplest and fastest way to bundle your TypeScript libraries. (TypeScript)
- jimsghstars - egoist/tsup - The simplest and fastest way to bundle your TypeScript libraries. (TypeScript)
- awesome-javascript - tsup
- stars - tsup
- awesome-web-cn - tsup - 一个用来帮助你打包你的 ts library 的工具 (Uncategorized / Uncategorized)
README
# tsup
[](https://npm.im/tsup) [](https://npm.im/tsup)
Bundle your TypeScript library with no config, powered by [esbuild](https://github.com/evanw/esbuild).
## 👀 What can it bundle?
Anything that's supported by Node.js natively, namely `.js`, `.json`, `.mjs`. And TypeScript `.ts`, `.tsx`. [CSS support is experimental](https://tsup.egoist.dev/#css-support).
## ⚙️ Install
Install it locally in your project folder:
```bash
npm i tsup -D
# Or Yarn
yarn add tsup --dev
# Or pnpm
pnpm add tsup -D
```You can also install it globally but it's not recommended.
## 📖 Usage
### Bundle files
```bash
tsup [...files]
```Files are written into `./dist`.
You can bundle multiple files in one go:
```bash
tsup src/index.ts src/cli.ts
```This will output `dist/index.js` and `dist/cli.js`.
## 📚 Documentation
For complete usages, please dive into the [docs](https://tsup.egoist.dev).
For all configuration options, please see [the API docs](https://jsdocs.io/package/tsup).
## 💬 Discussions
Head over to the [discussions](https://github.com/egoist/tsup/discussions) to share your ideas.
## Sponsors
## Project Stats

## License
MIT © [EGOIST](https://github.com/sponsors/egoist)