MCPcopy
hub / github.com/egoist/tsup

github.com/egoist/tsup @v8.5.1 sqlite

repository ↗ · DeepWiki ↗ · release v8.5.1 ↗
164 symbols 450 edges 48 files 2 documented · 1%
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

NormalizedExperimentalDtsConfig (Interface)
(no doc)
src/options.ts
ModuleExport (Interface)
(no doc)
src/exports.ts
NamedExport (Interface)
(no doc)
src/exports.ts

Core symbols most depended-on inside this repo

getTestName
called by 87
test/utils.ts
run
called by 87
test/utils.ts
getFileContent
called by 54
test/utils.ts
slash
called by 10
src/utils.ts
localRequire
called by 7
src/utils.ts
loadPkg
called by 5
src/load.ts
getContext
called by 4
src/plugin.ts
toAbsolutePath
called by 4
src/utils.ts

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

@egoist/path-parser1.0.6 · 1×
@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