Codemods
This project is a test project bootstrapped with CodeshiftCommunity
Scripts
npm run dev
Runs the codeshift CLI useful for testing transform files as if they have been published
example: npm run dev -t codemods/10.0.0/transform.ts
Alternatively, you can run npm run dev
to see an interactive list of codemods to choose from.
See the cli reference for more information.
npm run test
Launches the test runner in interactive watch mode.
See the testing guide for more information.
npm run validate
Checks the validity of your codeshift.config.js
file.
See the configuration options for more information.
npm run build
Builds the app for production to the dist
folder.
Publishing
This package can be published to npm via the normal commands npm version
and npm publish
Build tooling
Feel free to replace the preinstalled build tooling & dependencies to suit your needs. The only requirement is that there is a valid codeshift.config.js
in your project root, /src
or /codemods
directories.