Access peer dependency types in pnpm without making package a direct dependency
I use lib A
, which has a peer dependency upon lib B
. In my app code, I’d like to pull types from lib B
, but pnpm’s setup of the node_modules/
directory (at least out of the box) breaks this, the module in whole is unavailable.