Rename JavaScript files containing JSX to .jsx

Proprietary

Renames .js client files containing JSX in Create React App packages to .jsx and updates explicit relative .js imports, re-exports and dynamic imports within the same package. Extensionless imports and JSX-free files stay unchanged. Destination path collisions are recorded for manual resolution.

org.openrewrite.react.cra-to-vite.rename-jsx-files
mod run . --recipe=org.openrewrite.react.cra-to-vite.rename-jsx-files

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.