MCPcopy Index your code
hub / github.com/egoist/tsup

github.com/egoist/tsup @v8.5.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v8.5.1 ↗ · + Follow
164 symbols 450 edges 48 files 2 documented · 1% 302 cross-repo links updated 26d agov8.5.1 · 2025-11-12★ 11,279351 open issues

Browse by type

Functions 155 Types & classes 9
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

[!WARNING] This project is not actively maintained anymore. Please consider using tsdown instead. Read more in the migration guide.

tsup

npm version npm downloads

Bundle your TypeScript library with no config, powered by 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.

⚙️ Install

Install it locally in your project folder:

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

tsup [...files]

Files are written into ./dist.

You can bundle multiple files in one go:

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.

For all configuration options, please see the API docs.

💬 Discussions

Head over to the discussions to share your ideas.

Sponsors

Ship UIs faster with automated workflows for Storybook

sponsors

Project Stats

Alt

License

MIT © EGOIST

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 145
Method 10
Class 6
Interface 3

Languages

TypeScript100%

Modules by API surface

src/utils.ts22 symbols
src/plugin.ts14 symbols
src/index.ts12 symbols
src/log.ts11 symbols
src/tsc.ts10 symbols
src/rollup.ts9 symbols
src/load.ts6 symbols
src/exports.ts6 symbols
test/utils.ts5 symbols
src/esbuild/svelte.ts5 symbols
src/api-extractor.ts5 symbols
src/rollup/ts-resolve.ts4 symbols

Dependencies from manifests, versioned

@microsoft/api-extractor7.50.0 · 1×
@rollup/plugin-json6.1.0 · 1×
@swc/core1.10.18 · 1×
@types/debug4.1.12 · 1×
@types/node22.13.4 · 1×
@types/react18.3.6 · 1×
@types/react-dom18.3.0 · 1×
@types/resolve1.20.6 · 1×
autoprefixer10.4.20 · 1×
bumpp10.0.3 · 1×
bundle-require5.1.0 · 1×

For agents

$ claude mcp add tsup \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page