Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egoist/tsup
The simplest and fastest way to bundle your TypeScript libraries.
https://github.com/egoist/tsup
Last synced: 5 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 (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-05T12:32:43.000Z (6 days ago)
- Last Synced: 2025-01-05T13:26:07.138Z (6 days ago)
- Language: TypeScript
- Homepage: https://tsup.egoist.dev
- Size: 1.83 MB
- Stars: 9,476
- Watchers: 32
- Forks: 228
- Open Issues: 324
-
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-web-cn - tsup - 一个用来帮助你打包你的 ts library 的工具 (Uncategorized / Uncategorized)
- 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
README
# tsup
[![npm version](https://badgen.net/npm/v/tsup)](https://npm.im/tsup) [![npm downloads](https://badgen.net/npm/dm/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
![Alt](https://repobeats.axiom.co/api/embed/4ef361ec8445b33c2dab451e1d23784015834c72.svg 'Repobeats analytics image')
## License
MIT © [EGOIST](https://github.com/sponsors/egoist)