Replace deep zone.js imports

Proprietary

Replaces legacy deep imports from zone.js such as zone.js/dist/zone or zone.js/bundles/zone-testing.js with the standard zone.js or zone.js/testing imports, in both TypeScript files and angular.json polyfills. Deep imports are no longer allowed in Angular 17.

org.openrewrite.angular.migration.replace-deep-zone-js-imports
mod run . --recipe=org.openrewrite.angular.migration.replace-deep-zone-js-imports

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

Recipe list

It runs these recipes, in this order.

  1. Replace deep zone.js TypeScript imports
  2. Replace deep zone.js polyfills in angular.json