codemods
A collection of codemods for Helios components.
Usage
To run a specific codemod (for example the v3/dropdown
) in your project using npx
, you would run the following:
npx @hashicorp/design-system-codemods v3/dropdown path/to/some/glob/**/*.hbs
Local usage
To run a specific codemod (for example the v3/dropdown
) in this repository (even before publishing it), you would run the following from the root directory of this repository:
node ./packages/codemods/bin/cli.js v3/dropdown path/to/some/glob/**/*.hbs
Transforms
v3
v4
Contributing
Installation
- clone the repo
- change into the repo directory
yarn
Running tests
Update documentation