Migrate PrimeNG config field assignments to .set()
Recipe ID
org.openrewrite.primeng.MigratePrimeNGSignalAssignmentsArtifact@openrewrite/recipes-angularIn PrimeNG 18, fields on the PrimeNG config service like ripple, inputStyle, inputVariant, and csp are WritableSignal<T> rather than plain fields. Direct assignment (service.ripple = true) no longer compiles. This recipe rewrites such assignments to use the signal's set() method (service.ripple.set(true)) when the file imports PrimeNG from primeng/config.
Single 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.MigratePrimeNGSignalAssignmentsIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular