Move public/index.html to the project root for Vite

Proprietary

Moves public/index.html of a Create React App project to the project root, replaces %PUBLIC_URL% and %REACT_APP_*% placeholders, and adds a module script for src/index. Pages that cannot be moved safely are left in place.

org.openrewrite.react.cra-to-vite.move-public-index-html
mod run . --recipe=org.openrewrite.react.cra-to-vite.move-public-index-html

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