Migrate ng-inline-svg to angular-svg-icon

Proprietary

Runs MigrateNgInlineSvgCodeChanges, which replaces InlineSVGModule, InlineSVGDirective and each [inlineSVG] of a template with their angular-svg-icon counterparts. Each package.json that declares ng-inline-svg or ng-inline-svg-2 gets angular-svg-icon of its Angular major, from 7 on, and loses ng-inline-svg and ng-inline-svg-2 once none of its sources imports them. Code moves only in a project whose package.json declares angular-svg-icon, so not in one where npm refused to add it, such as one whose lock already has a peer conflict.

org.openrewrite.angular.nginlinesvg.MigrateNgInlineSvgToAngularSvgIcon
mod run . --recipe=org.openrewrite.angular.nginlinesvg.MigrateNgInlineSvgToAngularSvgIcon

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