Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/dev/codemods/src/s1-to-s2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ Run `npx @react-spectrum/codemods s1-to-s2` from the directory you want to upgra
## How it works

The upgrade assistant use codemods written with [jscodeshift](https://github.com/facebook/jscodeshift).

## Adding a new codemod

To add a new codemod for `Button`, for example, you would:

1. Create a new transform function in `src/codemods/components/Button/transform.ts` and export it as `default`
2. Implement the transform logic
3. Add tests for the transform in `__tests__/button.test.ts`
31 changes: 0 additions & 31 deletions packages/dev/codemods/src/s1-to-s2/src/codemods/button.ts

This file was deleted.

Loading