Mark imports of removed PrimeNG modules with TODO stubs
org.openrewrite.primeng.MarkRemovedPrimengModules
For each import of a PrimeNG module that no longer exists in v18 (primeng/chips, primeng/tristatecheckbox, primeng/messages, primeng/dataviewlayoutoptions), replaces the broken import statement with a const <Name>: any = null; stub annotated by a TODO comment that describes the v18 replacement. Also strips the corresponding entries from @NgModule imports, declarations, and exports arrays since Angular's compiler rejects null values there. Each flagged site is also recorded in the ManualMigrationSteps data table so downstream tooling can enumerate the remaining work.
Recipe source
This recipe is only available to users of Moderne.
This recipe is available under the Moderne Proprietary License.
Used by
This recipe is used as part of the following composite recipes:
Usage
In order to run JavaScript recipes, you will need to use the Moderne CLI. For JavaScript specific configuration instructions, please see our configuring JavaScript guide.
Once the CLI is installed, you can install this JavaScript recipe package by running the following command:
mod config recipes npm install @openrewrite/recipes-angular
Then, you can run the recipe via:
mod run . --recipe org.openrewrite.primeng.MarkRemovedPrimengModules