Bbackstage

backstage/remove-mui-dependencies

MUI 4 to BUI: Remove unused @material-ui/* dependencies from package.json

backstagemigrationmuibuipackage.jsoncleanup
Public
0 executions

Run locally

npx codemod @backstage/remove-mui-dependencies

@backstage/remove-mui-dependencies

Removes unused @material-ui/* dependencies from package.json after source migration.

Covers

  • Scans TS/TSX for remaining Material UI imports
  • Drops unused @material-ui/* entries from package manifests
  • Intended as the last step in the MUI 4 → BUI recipe

TODOs / won't-do

  • Does not rewrite source imports (run component codemods first)
  • Does not remove transitive / workspace-hoisted deps outside the scanned package

Test

bash

Ready to contribute?

Build your own codemod and share it with the community.