← All recipes
Moderne licensed

Migrate to solution-style tsconfig

Recipe IDorg.openrewrite.angular.migration.migrate-to-solution-style-tsconfigArtifact@openrewrite/recipes-angular

Migrates a project to use a solution-style tsconfig.json. The original tsconfig.json content is moved to tsconfig.base.json (with project-specific fields removed), and tsconfig.json is replaced with a solution-style config that references the project's TypeScript configurations. Other tsconfig files that extend ./tsconfig.json are updated to extend ./tsconfig.base.json.

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.migrate-to-solution-style-tsconfig

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

mod config recipes npm install @openrewrite/recipes-angular