Replace initializer tokens with provider functions

Proprietary

Replaces APP_INITIALIZER, ENVIRONMENT_INITIALIZER, and PLATFORM_INITIALIZER multi providers with provideAppInitializer, provideEnvironmentInitializer, and providePlatformInitializer. The provider functions were introduced in Angular 19 and the tokens are deprecated.

org.openrewrite.angular.migration.replace-initializer-providers
mod run . --recipe=org.openrewrite.angular.migration.replace-initializer-providers

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.