@backstage/migrate-permissioned-route
Migrates deprecated PermissionedRoute from @backstage/plugin-permission-react to Route (from react-router-dom) wrapping RequirePermission.
Targets Backstage v1.50+ where PermissionedRoute was removed.
Installation
bash
Usage (from this repo)
bash
Optional: AI fixup step
Enable with --param aiFixup=true to address edge cases the AST codemod cannot handle mechanically:
- Remaining
PermissionedRoutereferences in re-exports, type annotations, or dynamic rendering patterns - Dynamic element props with conditional expressions where the
RequirePermissionwrapping needs verification - Type annotations or generic parameters referencing
PermissionedRoute
Development
From the repo root:
bash
Or from this package directory:
bash
License
MIT