@nx-devkit/tsdown
v0.1.5
Published
Standalone Nx plugin: any `tsdown.config.ts` becomes a project with a cached `build` target. No `project.json` needed.
Readme
@nx-devkit/tsdown
Standalone Nx plugin: any tsdown.config.ts becomes a project with a cached build target. No project.json needed.
Part of nx-devkit. If you want the full TypeScript toolchain (typecheck, test, lint, format, build), use the @nx-devkit/typescript preset instead — it includes everything this plugin does.
Install
bun add -D @nx-devkit/tsdown tsdownRequires @nx/devkit ^22 || ^23 (peer) and the tsdown binary installed — the target shells out to it via nx:run-commands.
Register
// nx.json
{ "plugins": ["@nx-devkit/tsdown"] }What it infers
| Trigger | Target | Command | Cacheable | Outputs |
|---|---|---|---|---|
| tsdown.config.ts | build | tsdown (via nx:run-commands, cwd = project root) | yes | {projectRoot}/dist |
build declares dependsOn: ["^build"], so upstream dependencies build first.
Inspect
npx nx show projects
npx nx show project <name>
npx nx run <name>:buildSkip rules
- Only
tsdown.config.tsmatches (not.mts,.js, or other extensions). - Configs inside
node_modulesare skipped. - Configs that escape the workspace root are skipped.
- The workspace-root
tsdown.config.tsis skipped — the plugin is for nested project roots.
Options
None. Behavior is entirely file-driven.
License
MIT
