Can't generate migrations because of top level await

Nnaethan5/4/2023
This only recently started happening.Here is my drizzle.config.json :
{
  "out": "./migrations",
  "schema": "./src/**/*.sql.ts"
}

I know this is probs due to drizzle not fully supporting esm. However I don't understand why async/await is occuring assuming generation happens locally. It doesn't even need to connect to the server, correct?
Nnaethan5/4/2023
tried using a drizzle.config.ts instead and its saying kit is not install 😦