Migrate CRA package configuration and native locks

Proprietary

Preflights CRA projects, prepares Vite/Vitest/SVGR dependencies and scripts, removes CRA-only defaults, and commits package.json with its native lock. Refused projects retain their scripts and dependencies.

org.openrewrite.react.cra-to-vite.migrate-package

Optional

Vite version range; defaults to ^7.0.0 (Node 20.19+).

Compatible @vitejs/plugin-react version range; defaults to ^5.2.0.

mod run . --recipe=org.openrewrite.react.cra-to-vite.migrate-package

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