I'm currently trying to migrate my codebase to use drizzle, however I'm facing an issue related to how drizzle-kit handles TS paths.
I am using a NX monorepo, with path aliases.
I have domain libs, let's say @project/domain1 and @project/domain2, exporting enums I would like to use in my drizzle schema. I have created a new lib that will host the schema, @project/drizzle-schema.
In @project/drizzle-schema, when defining the schema I use :
import { myEnum } from @project/domain1
import { myEnum } from @project/domain1
However, when running drizzle-kit generate, module @project/domain1 cannot be found.
Is there a way to pass a tsconfig to drizzle.config.ts ? Or another way to fix my problem?
What version of drizzle-orm are you using? ^0.28.6 What version of drizzle-kit are you using? ^0.19.13 Describe the Bug if i import using '@/app/lib/env', it doesn't work but if i impor...