I tried to run npx slonik-typegen generate --config typegen.config.ts
but it failed with Error: Cannot use import statement outside a module
It seems like I can only use .js files for the config?
But I need to use a ts import because I want to load my db connection to pass for the poolConfig option.
typegen.config.ts
import * as dbConn from "./src/dbConnection";
...
So is this not possible to do?
I tried to run
npx slonik-typegen generate --config typegen.config.tsbut it failed with
Error: Cannot use import statement outside a moduleIt seems like I can only use .js files for the config?
But I need to use a ts import because I want to load my db connection to pass for the
poolConfigoption.typegen.config.ts
So is this not possible to do?