karmux
DTDrizzle Team
•Created by karmux on 3/27/2023 in #help
Doesn't drizzle-kit generate:pg work yet when schema imports from esm package?
Hi. Any update on this? Can I help somehow? This issue is the last issue keeping us using TypeORM.
13 replies
DTDrizzle Team
•Created by karmux on 3/27/2023 in #help
Doesn't drizzle-kit generate:pg work yet when schema imports from esm package?
Provided minimum reproducible example under comments of https://github.com/drizzle-team/drizzle-kit-mirror/issues/21
13 replies
DTDrizzle Team
•Created by karmux on 3/27/2023 in #help
Doesn't drizzle-kit generate:pg work yet when schema imports from esm package?
At least would be great to be able to import
helper functions from esm helper package into schema file.
13 replies
DTDrizzle Team
•Created by karmux on 3/27/2023 in #help
Doesn't drizzle-kit generate:pg work yet when schema imports from esm package?
Yes but removing extras (Error class and InferModels) does not fix it. I'm using own esm package to reexport drizzle-orm exports to have single drizzle-orm defined in the project. I run into some weird TS errors when I installed drizzle-orm separately to every app.
@project1/database-drizzle-orm is an esm package reexporting drizzle stuff and some helper functions.
13 replies