Initial setup guide (remove once the repo is customized)
- Search and replace placeholders:
<ECOSYSTEM_NAME>
(e.g., "React", "Node.js", "AcmeLib")@<NAMESPACE>
(e.g.,acme
)<MAJOR_VERSION>
(e.g.,v5
)- Scaffold new codemods under
recipes
and name them like@<NAMESPACE>/<MAJOR_VERSION> (optional)/<codemod-name>
:npx codemod@latest init recipes/my-codemod
- Build codemod manually or with Codemod Studio (recommended) (Read docs →).
- Validate and test:
npm run validate npm run test
Commit hooks and CI run lint, validate, typecheck, and tests.
Publish codemods to Codemod Registry:
# In package directory: npx codemod@latest publish
This repository contains codemods (automated migrations) for <ECOSYSTEM_NAME>. These codemods facilitate adopting new features and upgrading across breaking changes.
# Run a specific codemod from the registry
npx codemod@latest @<NAMESPACE>/<codemod-name>
# Run locally from a recipe directory
npx codemod@latest workflow run -w workflow.yaml
For all commands, see the full Codemod CLI reference →
Caution
These scripts change source code. Commit or stash your changes before running them.
List your published codemods here, e.g.:
@<NAMESPACE>/<MAJOR_VERSION>/example-codemod
— short description
See CONTRIBUTING.md.
See SECURITY.md.
MIT