Efficiently Managing Shared Dependencies and Binaries in a pnpm Monorepo Workspace
I’m working on a monorepo setup using pnpm
workspaces to manage multiple related projects. My goal is to efficiently manage and share dependencies across these projects without duplicating them in each project’s package.json
. However, I’m facing challenges with resolving shared dependencies and ensuring that binaries are correctly executed.
Ambient declarations work, but `declare global` is lost in a monorepo workspace using pnpm
When I import a function from another package, it loses its type definition. The type is defined globally within that package. Other types work fine. How can I solve it?
pnpm workspace in pnpm workspace
My project folder like this.