https://github.com/aslemammad/tsup
The simplest and fastest way to bundle your TypeScript libraries.
https://github.com/aslemammad/tsup
Last synced: 9 months ago
JSON representation
The simplest and fastest way to bundle your TypeScript libraries.
- Host: GitHub
- URL: https://github.com/aslemammad/tsup
- Owner: Aslemammad
- License: mit
- Fork: true (egoist/tsup)
- Created: 2021-12-28T19:26:47.000Z (over 4 years ago)
- Default Branch: dev
- Last Pushed: 2021-12-27T01:56:27.000Z (over 4 years ago)
- Last Synced: 2025-01-22T09:32:11.740Z (over 1 year ago)
- Homepage: https://tsup.egoist.sh
- Size: 1.36 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.sh/#css-support).
## ⚙️ Install
Install it locally in your project folder:
```bash
npm i tsup -D
# Or Yarn
yarn add tsup --dev
```
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.sh).
For all configraution options, please see [the API docs](https://paka.dev/npm/tsup#module-index-export-Options).
## 💬 Discussions
Head over to the [discussions](https://github.com/egoist/tsup/discussions) to share your ideas.
## Sponsors
[](https://github.com/sponsors/egoist)
## Project Stats

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