C

npm-esm-first-in-exports

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

Sort package.json export order to prefer ESM over CJS

json

Example

Before

json

After

ts

Ready to contribute?

Build your own codemod and share it with the community.