tsdown-migrate
v0.23.0
Published
A CLI tool to help migrate your project to tsdown.
Readme
tsdown-migrate
A CLI tool to migrate your project from tsup to tsdown.
Usage
npx tsdown-migrateOptions
[...dirs]- Directories to migrate (defaults to current directory)-d, --dry-run- Preview changes without applying them-y, --yes- Skip the migration confirmation prompt--package-manager <name>- Override package manager auto-detection--no-install- Skip dependency installation
For non-interactive environments, explicitly confirm the migration. Use
--no-install when the caller will install dependencies after running other
migrations:
npx tsdown-migrate --yes --no-installWhen installation is enabled, tsdown-migrate detects the package manager from
the project's packageManager field or lockfile. If detection fails in a
non-interactive environment, pass --package-manager <name> or --no-install.
What It Does
- Renames
tsuptotsdownin dependencies and scripts - Transforms tsup config files to tsdown config format
- Handles property renames, option transformations, and import path updates
- Warns about unsupported options that need manual attention
- Runs package manager install after successful migration unless
--no-install
Documentation
See the Migration Guide for more details.
