Migrate PrimeNGConfig to PrimeNG
Recipe ID
org.openrewrite.primeng.MigratePrimeNgConfigToPrimeNGArtifact@openrewrite/recipes-angularRenames the PrimeNGConfig import from primeng/api to PrimeNG from primeng/config, renames all identifier usages, and flags injection sites that should be migrated to providePrimeNG() in application providers.
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.primeng.MigratePrimeNgConfigToPrimeNGIf 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.
- Rename
PrimeNGConfigidentifiers toPrimeNGorg.openrewrite.primeng.MigratePrimeNgConfigToPrimeNG.identifiers - Change import
org.openrewrite.javascript.change-import - Find
PrimeNGConfig/PrimeNGservice injectionorg.openrewrite.primeng.MigratePrimeNgConfigToPrimeNG.find-injection