C

pnpm/catalog

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

Migrate to pnpm catalog

  • Performs search across all packages in pnpm workspace.
  • If there are more than 2 packages with same dependency - it will move dependency to catalog.
  • If there are multiple versions of dependency - codemod will prompt to choose whether to move to catalog or not (in this case latest version will be picked).
  • Automatically updates version in packageManager field in package.json to 9.5.0 (if it is set and lower than 9.5.0).
  • Runs pnpm install after migration.

Ready to contribute?

Build your own codemod and share it with the community.