Use the @angular/build builders in angular.json

Proprietary

Moves the application, dev-server, extract-i18n, karma and ng-packagr builders of an angular.json workspace from @angular-devkit/build-angular to @angular/build, as the Angular CLI's use-application-builder migration does, and drops the builderMode option that @angular/build:karma does not have. A Karma target with a main gets zone.js and zone.js/testing in its polyfills where the project depends on zone.js, since @angular/build:karma sets zone testing up only from there. A workspace moves only when every one of its builders has a counterpart in @angular/build at its Angular version (18 for the first three, 19 for karma and ng-packagr). Otherwise the builders that block it, such as the webpack-based browser and server, are flagged and the workspace is left as it is. Each package.json that declares @angular-devkit/build-angular 18 or later gets @angular/build of the same major in devDependencies, which the builders need to resolve. It keeps @angular-devkit/build-angular, which Karma configurations may still load a plugin from.

org.openrewrite.angular.migration.use-angular-build-builders
mod run . --recipe=org.openrewrite.angular.migration.use-angular-build-builders

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