You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
feat(esm): Complete P1.T005 - Migrate core commands to ESM JavaScript
✅ Successfully migrated 13 core files (~800 LoC) from CommonJS to ESM:
- src/index.js - Main CLI entry with dynamic imports
- src/lib/Command.js - Base command class
- src/lib/DatabaseCommand.js - Database base class
- src/lib/SupabaseCommand.js - Supabase base class
- src/lib/TestCommand.js - Test base class
- src/commands/db/CompileCommand.js - Compilation command
- src/commands/db/MigrateCommand.js - Migration command
- src/commands/test/RunCommand.js - Test execution command
- src/reporters/CliReporter.js - CLI reporter
- src/ui/logo.js - Logo utility
- Command index files for db, test, functions
Migration patterns established:
- require() → import statements
- module.exports → export default/named exports
- Added .js extensions to relative imports
- Dynamic imports for runtime loading
- import.meta.url for module detection
CLI fully functional with ESM modules!
Next: P1.T009 and P1.T010 can run in parallel
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments