@whiteangeldev/ethers-v5-to-v6 (Codemod Registry package)
Deterministic ethers v5 → v6-style API migration using the same Babel AST logic as this repo’s src/codemod.js.
What it does
- Lifts
ethers.utils.*,ethers.providers.*, and mappedethers.constants.*per the official migration guide. - Emits
migration-report/(report.md,report.json,ai-queue.jsonl) under the target project. - Writes transformed sources in place (
--write). Run on a branch or copy.
Before publish (maintainers)
Sync vendored copies of src/cli.js and src/codemod.js from the repo root:
bash
Or from this directory: npm run sync-vendor
(prepublishOnly runs sync automatically before npm publish.)
Validate
bash
Run locally
From a git-tracked project (or any folder you are allowed to modify):
bash
After it is published:
bash
Publish (docs)
bash
Bump version in codemod.yaml for each publish. The package is scoped as @whiteangeldev/ethers-v5-to-v6 (your Codemod login user).
Note
The full hackathon pipeline (AI second pass) lives at the repo root (npm run migrate). This registry package ships the deterministic codemod only.