Instantly migrate npm scripts, dependencies, and configurations to Bun. Optimize script execution speeds and strip obsolete transpilations.
{
"name": "enterprise-service",
"version": "1.0.0",
"scripts": {
"dev": "NODE_ENV=development bun src/server.ts",
"build": "tsc",
"start": "node dist/server.js",
"test": "bun run build && jest"
},
"dependencies": {
"express": "^4.19.2",
"dotenv": "^16.4.5"
},
"devDependencies": {
"typescript": "^5.4.5"
}
}Bun executes TypeScript natively without requiring ts-node runtime transpilations.
Bun parses .env files automatically and supports cross-platform environment variables natively.
Paste your package.json containing npm scripts and Node.js dependencies.
The migrator replaces `npm run` and `ts-node` with Bun native script invocation.
Obsolete build dependencies (ts-node, cross-env) are automatically flagged for removal.
Copy the optimized package.json and run `bun install` to generate bun.lock.
name: Bun CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install --frozen-lockfile
- run: bun test
Perform identical migration routines across entire directories or repositories in your local terminal:
devflow migrate npm-to-bun -i package.jsonConvert Jest test suites, configs, and mocks to Vitest. Share identical Vite configurations and execute tests 4x faster with ESM native workers.
Convert webpack.config.js bundles into lightning-fast Vite configs (vite.config.ts). Eliminate multi-minute cold starts and reload delays.