tsup
TypeScript icon, indicating that this package has built-in type declarations

8.4.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
8.4.0
565,934latest

Version History

VersionDownloads (Last 7 Days)Published
8.4.0
565,934
8.3.6
91,648
8.3.5
125,585
8.3.4
536
8.3.0
89,685
8.2.4
41,527
8.2.3
5,022
8.2.2
1,825
8.2.1
772
8.2.0
260
8.1.2
1,930
8.1.1
193
8.1.0
30,312
8.0.2
114,160
8.0.1
30,139
8.0.0
243
7.2.0170,533
7.1.018,277
7.0.0740
6.7.0131,467
6.6.326,727
6.6.21,188
6.6.197
6.6.02,111
6.5.011,030
6.4.06,337
6.3.01,630
6.2.311,539
6.2.21,759
6.2.1276
6.2.050
6.1.3847
6.1.2527
6.1.14
6.1.036
6.0.168
6.0.025
5.12.916,273
5.12.8130
5.12.7220
5.12.628
5.12.521
5.12.45,981
5.12.3306
5.12.240
5.12.12,610
5.12.0474
5.11.135,937
5.11.123
5.11.115,052
5.11.107
5.11.912
5.11.818
5.11.7279
5.11.6291
5.11.52
5.11.421
5.11.32
5.11.23
5.11.12
5.11.04
5.10.312
5.10.23
5.10.11,807
5.10.0105
5.9.22
5.9.13
5.9.02
5.8.14
5.8.02
5.7.43
5.7.32
5.7.214
5.7.16
5.7.028
5.6.32
5.6.22
5.6.12
5.6.08
5.5.01,102
5.4.43
5.4.32
5.4.25
5.4.12
5.4.010
5.3.0534
5.2.121
5.2.0513
5.1.03
5.0.02
4.14.0467
4.13.1652
4.13.02
4.12.551
4.12.42
4.12.32
4.12.22
4.12.17
4.12.05
4.11.2224
4.11.13
4.11.02
4.10.19
4.10.02
4.9.22
4.9.12
4.9.02
4.8.2111
4.8.203
4.8.194
4.8.184
4.8.172
4.8.162
4.8.152
4.8.142
4.8.133
4.8.122
4.8.112
4.8.1012
4.8.92
4.8.83
4.8.72
4.8.63
4.8.52
4.8.42
4.8.33
4.8.22
4.8.12
4.8.03
4.7.23
4.7.13
4.7.02
4.6.15
4.6.02
4.5.12
4.5.03
4.4.03
4.3.1876
4.3.02
4.2.03
4.1.03
4.0.13
4.0.04
3.12.1105
3.12.03
3.11.02
3.10.18
3.10.03
3.9.03
3.8.02
3.7.12
3.7.03
3.6.12
3.6.02
3.5.02
3.4.33
3.4.23
3.4.12
3.4.02
3.3.03
3.2.02
3.1.22
3.1.14
3.1.02
3.0.03
2.1.016
2.0.345
2.0.23
2.0.13
2.0.02
1.5.13
1.5.02
1.4.232
1.4.222
1.4.212
1.4.202
1.4.193
1.4.182
1.4.172
1.4.1625
1.4.152
1.4.143
1.4.135
1.4.122
1.4.112
1.4.102
1.4.93
1.4.82
1.4.72
1.4.63
1.4.53
1.4.42
1.4.32
1.4.22
1.4.13
1.4.03
1.3.12
1.3.03
1.2.03
1.1.02
1.0.02

Package Sidebar

Install

npm i tsup

Weekly Downloads

1,567,124

Version

8.4.0

License

MIT

Unpacked Size

390 kB

Total Files

18

Last publish

Collaborators

  • egoist
  • sxzz