tsdown

Bundle TypeScript libraries with Rolldown and Oxc, generating .d.ts declarations.

1|1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/Kurrawong/prez-lite --skill tsdown-kurrawong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tsdown
Source: https://github.com/Kurrawong/prez-lite/tree/main/.claude/skills/tsdown
Command: npx skills add https://github.com/Kurrawong/prez-lite --skill tsdown-kurrawong

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of building and bundling TypeScript projects, offering a faster and more efficient alternative to existing tools.

Core Features & Use Cases

  • Fast Bundling: Leverages Rolldown and Oxc for high-performance builds.
  • TypeScript Support: Compiles TypeScript to JavaScript and generates declaration files (.d.ts).
  • Multiple Formats: Supports ESM, CJS, IIFE, and UMD outputs.
  • Use Case: Quickly build and publish your TypeScript library to npm, ensuring compatibility across different JavaScript environments.

Quick Start

Run npm i -D tsdown typescript and then execute tsdown to build your project.

Frequently Asked Questions about tsdown

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bundle a TypeScript library for npm publishing?

Bundle a TypeScript library by running tsdown to compile code, generate .d.ts declarations, and output dual ESM and CJS formats. Install it first via `npm i -D tsdown typescript`, then execute `tsdown` to build your project.

What is the fastest build tool for generating TypeScript declaration files?

tsdown is a fast TypeScript bundler powered by Rolldown and Oxc that compiles TypeScript and generates .d.ts declaration files efficiently. It streamlines building TypeScript libraries and publishing npm packages with multiple format support.

Can I configure the TypeScript bundler using a tsdown.config.ts file?

Yes, you can configure the TypeScript bundler using a tsdown.config.ts file or package.json. The build tool supports advanced customization through plugins, hooks, and a programmatic API for tailored build workflows.

Does this TypeScript bundler support both ESM and CJS output formats?

Yes, the TypeScript bundler supports ESM, CJS, IIFE, and UMD output formats. This ensures compatibility across different JavaScript environments when building and publishing your TypeScript library to npm.

Why use Rolldown and Oxc for JavaScript library builds?

Rolldown and Oxc provide high-performance builds for JavaScript libraries, offering a faster and more efficient alternative to existing bundling tools. They power tsdown to quickly process TypeScript projects and generate multiple output formats.