TSDX is a zero-configuration command-line interface (CLI) for modern TypeScript package development, currently stable at version 2.0.0. It aims to simplify the creation, testing, and publication of TypeScript libraries by abstracting away complex build configurations. Version 2.0.0 represents a complete rewrite, transitioning to high-performance Rust-based tooling, including bunchee for bundling, Vitest for testing, OXLint for linting, and OXFmt for formatting. While it doesn't adhere to a fixed release cadence, major updates like v2.0.0 introduce significant architectural shifts and toolchain changes. Its key differentiators include the 'zero-config' philosophy, the integration of lightning-fast Rust tools for improved developer experience, built-in support for dual ESM/CommonJS outputs, and robust TypeScript declaration generation.
npm install tsdxNo compatibility data collected yet for this library.
This quickstart demonstrates how to create a new TSDX project, install its dependencies using Bun, and start the development server for real-time compilation and testing.
Ensure your Node.js environment is Node.js 20 or newer. Consult the TSDX migration guide for detailed steps when upgrading from 0.x.
Upgrade your Node.js installation to version 10 or higher for v0.x, or Node.js 20+ for v2.x, to ensure compatibility with TSDX and its underlying dependencies.
Update your `tsconfig.json` to explicitly set `"rootDir": "./src"`.
Upgrade TSDX to version 0.14.1 or later, which includes a fix for this upstream caching issue.
Upgrade TSDX to version 0.13.1 or later, or manually ensure your `tsconfig.json`'s `include` array excludes `test` directories.
Upgrade TSDX to version 0.14.1 or newer to resolve this caching issue.
Upgrade your Node.js installation to version 20 or higher. You can use a version manager like `nvm` or `fnm` to manage multiple Node.js versions.
Edit your `tsconfig.json` file and set `"rootDir": "./src"`.
No dependency data recorded yet.