← All recipes
Moderne licensed

Rename getAngularLib/setAngularLib to getAngularJSGlobal/setAngularJSGlobal

Recipe IDorg.openrewrite.angular.migration.rename-angular-js-globalsArtifact@openrewrite/recipes-angular

Renames the getAngularLib and setAngularLib functions from @angular/upgrade to getAngularJSGlobal and setAngularJSGlobal. The deprecated aliases were removed in Angular 22.

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.angular.migration.rename-angular-js-globals

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-angular