Angular Material Imports

1.0.0Last update Jul 9, 2024
by@literal92

Angular-Material-Imports Codemod

This project provides a codemod script to update Angular Material imports to their new module paths, suitable for Angular v9 and beyond. It leverages jscodeshift to transform the import statements in your codebase.

Purpose

After running the codemod, your codebase should have updated import statements that match the old Angular Material import paths.

Before

import { MatButtonModule } from '@angular/material';
import { MatCardModule } from '@angular/material';

After

import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now