Skip to content

Conversation

@threepointone
Copy link
Contributor

@threepointone threepointone commented Apr 16, 2019

An improvement to actually using these codemods. You should be able to npx react-codemod <transform> path/to/src and it should Just Work™️. Also updates the docs to prefer this version.

Did it as a quick hack so I could show during the meeting, happy to work on it further if it looks good. Would be good to point to in 16.9.0 release notes as well.

make an executable that runs the transform update docs to prefer npx format instead
@cpojer
Copy link
Member

cpojer commented Apr 16, 2019

Oh my god it's so beautiful

@threepointone threepointone changed the title POC - react-codemod <transform> <path/to/src> POC - npx react-codemod <transform> <path/to/src> Apr 16, 2019
@kentcdodds
Copy link

YES PLEASE!

@threepointone
Copy link
Contributor Author

merging, so I can try it out. if it's broken, 🤷‍♂️

@threepointone threepointone merged commit a36bbb2 into reactjs:master Apr 24, 2019
@threepointone threepointone deleted the npx-react-codemod branch April 24, 2019 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants