[BUG]: drizzle-kit
does not have all its dependencies (e.g. drizzle-orm
or pg
) listed
#3990
Open
1 task done
Labels
bug
Something isn't working
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.38.3
What version of
drizzle-kit
are you using?0.30.1
Other packages
No response
Describe the Bug
Running
drizzle-kit
commands fails in some cases for pnpm. See #2032, probably #3578This happens if drizzle-kit is installed in more restrictive/secure installations (e.g. pnpm without (public) hoisting, where packages cannot just access othe packages freely).
AFAIK, simply adding
drizzle-orm
to thepeerDependencies
should resolve this issue. This also has the nice side effect that package managers can check and warn ifdrizzle-kit
is installed, butdrizzle-orm
isn't.drizzle-zod
already does this.I'm not 100% sure if
peerDependencies
is the correct one or some other property would be a better fit. I've tested it only withpeerDependencies
andpeerDependenciesMeta
(using https://pnpm.io/pnpmfile#usage) and that works well..pnpmfile.js
The text was updated successfully, but these errors were encountered: