A tool to automatically upgrade Babel 6 projects to Babel 7. It updates dependencies, config files (.babelrc, babel key in package.json), and JavaScript files that import Babel packages directly. Stable version is v1.0.1, though previously released as v0.x. No regular release cadence; last release was in 2019. Key differentiators: it automates the rename of packages (e.g., babel-preset-env → @babel/preset-env), adds necessary peer dependencies, and handles monorepos. It is a one-time migration tool, not a general Babel upgrade utility.
npm install babel-upgradeVerified import paths — ran on the pinned version, not inferred.
Run babel-upgrade with --write to modify files and --install to update node_modules.
Update Node.js to >= 8.0.0.
Review the diff output carefully; run tests after upgrade.
Add --write or -w flag to apply changes.
Use npm >= 5.2.0 or manually run install after upgrade.
Manually rename any custom or third-party presets/plugins that were not renamed.
Upgrade npm to >= 5.2.0 or install babel-upgrade globally and run without npx.
Update Node.js to version 8.0.0 or higher.
Run 'npx babel-upgrade' or install globally: 'npm install -g babel-upgrade'.
No dependency data recorded yet.