Migration from Node.js Tooling to Bun in Nx
Use this checklist to migrate safely and keep CI deterministic.
Migration Checklist
- Install and initialize
@nx-bun/nx. - Choose migration scope (single project, bounded set, or full workspace).
- Convert target executors using
convert-to-bun. - Standardize package-manager usage for migrated scope.
- Validate run/build/test targets and cache behavior.
- Remove obsolete scripts and lockfiles per policy.
Compatibility Notes
- Some Node-centric dependencies may assume Node runtime behavior.
- Validate native modules and startup scripts before broad rollout.
- Keep mixed-runtime boundaries explicit through project tags.
Package Manager Transition
- Move from
npm/yarncommands tobuncommands for migrated projects. - Avoid parallel lockfile ownership in the same migration boundary.
Rollout Strategy
- Start with one low-risk application.
- Capture CI timing and failure-mode differences.
- Expand migration only after baseline stability is verified.