What problem does it solve?
This Skill streamlines building TypeScript and JavaScript libraries by enabling high-speed bundling, declaration generation, and multi-format output.
Core Features & Use Cases
- Library Bundling: Efficiently compiles and bundles library code into multiple formats including ESM, CJS, IIFE, and UMD.
- Type Declarations: Fully automates generating
.d.ts files for TypeScript projects.
- Dependency Management: Supports externalizing dependencies, whitelists, and custom dependency configurations.
- Advanced Configuration: Custom build options, CSS handling, plugin support, and CI-aware settings for complex workflows.
- Use Case: Perfect for library authors needing reliable, fast builds with minimal setup, ensuring compatibility across node, browsers, and monorepos.
Quick Start
Run tsdown to build your main library by specifying your source entry file and desired formats directly with the CLI.