You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Add a new database package to the hello-world monorepo[](https://www.prisma.io/docs/guides/using-prisma-orm-with-turborepo#2-add-a-new-database-package-to-the-hello-world-monorepo)
Create a database package within the packages directory. Then, create a package.json file for the package by running:
cd packages/
mkdir database
cd database
touch package.json
Define the package.json file as follows:
{
"name": "@repo/db",
"version": "0.0.0"
}
Next, install the required dependencies to use Prisma ORM. Use your preferred package manager:
npm
yarn
pnpm
npm install prisma --save-dev
Best practices for monorepo integration
...
Install Dependencies in the Root: Avoid version conflicts by installing Prisma ORM as a dependency
at the root of the monorepo.
Clarification around which one it should be would be appreciated.
The text was updated successfully, but these errors were encountered:
The guide How to use Prisma ORM with Turborepo says to install prisma and @prisma/client inside a sub package.
Yet the Help and troubleshooting section says to install it in the root:
Clarification around which one it should be would be appreciated.
The text was updated successfully, but these errors were encountered: