Should I share packages on Turborepo?

I have 2 clients on my app, and I notice they literally have almost all the same dependencies.
What I havent understood well about monorepo is about sharing dependencies, I have a package.json at Root of the project and each one for each project.

Yesterday I had to import one package that I didnt had on a specific project but had in other and it work without install and I was WTF

I see the right way of working is:
  • Dependencies which are in more than one project set on the package.json root and the specific ones on the project itself
but what about deploying? will vercel for example find these dependencies or should I extend the package.json root somehow somwhere

is that the right way to handle dependencies in a monorepo?
Was this page helpful?