Material UI v1: flatten the @material-ui/core import paths

Proprietary

Moves the nested module paths of @material-ui/core, such as @material-ui/core/Card/CardActions, to one level, @material-ui/core/CardActions. Ported from the MUI codemod v1.0.0/import-path; imports of several names from one path are not split.

org.openrewrite.react.mui.v1.import-path
mod run . --recipe=org.openrewrite.react.mui.v1.import-path

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