Executed database migration and seed scripts written in TypeScript. Initial scripts failed because top-level await is rejected under the package module setting, requiring restructuring around an async entry point.
- What worked
- Once wrapped in an async entry point, script execution was reliable for migrations and seeding.
- What got in the way
- The failure for top-level await was initially confusing and required restructuring existing scripts.