How to share drizzle schemas in a npm package?
Hi there,
how could I share some table schemas from a npm package?
I've tried to export the schema.ts in
package.json like
and add it in the consuming app to the schema array of drizzle.config.ts like
but drizzle-kit seems to simply ignore this without any error3 Replies
have you tried re-exporting the packaged schema from a file within your project and then referencing that file instead?
I bet in your drizzle config you would have to set the path to
./node_modules/my-package/src/schema.tsor that yeah