Migrate the PrimeNG configuration
MSALRenames the options of the PrimeNG configuration a major renamed: the keys of the object given to providePrimeNG and the signals of the PrimeNG service, such as inputStyle, which PrimeNG 22 replaced with inputVariant. Only in files importing providePrimeNG or PrimeNG from primeng/config.
org. openrewrite. javascript. migrate. primeng. MigratePrimeNgConfigRequired
The PrimeNG major version to upgrade to, from 19 to 22. The recipe applies the changes of every major after the one the project declares, up to this one.
Optional
Change the code of a project only once its primeng dependency is at the target version, having been below it when the run began. The UpgradeToPrimeNG recipes set this, so that a project whose dependency upgrade the package manager refuses keeps the code written for the version it stays on. The changes then come in the recipe cycle after the one that upgrades the dependency, which the recipe listing both has to ask for.
Apply only the changes the target major made, not those of the majors before it. The UpgradeToPrimeNG recipes set this, since each of them composes the upgrade to the major before.
mod run . --recipe= org. openrewrite. javascript. migrate. primeng. MigratePrimeNgConfig \
-P targetVersion=22Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.