Move DOCUMENT import to @angular/core
Recipe ID
org.openrewrite.angular.migration.move-document-importArtifact@openrewrite/recipes-angularMoves the DOCUMENT import from older Angular modules to @angular/core.
Composite recipeProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.angular.migration.move-document-importIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angularDefinition
This recipe runs the following recipes in order.
- Change import
org.openrewrite.javascript.change-import - Change import
org.openrewrite.javascript.change-import