When migrating ($ARGUMENTS):
Analyze current state:
- Identify the source framework/version/pattern
- Map all usages and dependencies
- Check for breaking changes in target
Plan migration:
- List all files that need changes
- Identify deprecated APIs and their replacements
- Note any new dependencies needed
Execute incrementally:
- Update one module/file at a time
- Replace deprecated APIs with new equivalents
- Update imports and type definitions
- Adjust configuration files
Verify each step:
- Run tests after each change
- Check for TypeScript errors
- Ensure no runtime regressions
Cleanup:
- Remove unused dependencies
- Update package.json versions
- Document any manual steps needed