Monorepo: hoisting of node_modules on workspaces #7595
Unanswered
andreapigatto
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm experimenting building a monorepo with pnpm and workspaces.
After running
pnpm install
I see anode_modules
folder on root and anode_modules
folder for each of the workspaces.No problem about it.
Exploring the content of
node_modules
inside each workspace, I noticed that I see all my dev, prod and peer dependencies inside with their content.Having used a lot lerna+yarn workspaces in the past, I remembered that peer dependencies (dependencies in common with root for ex. eslint, prettier, typescript) were hoisted on the root
node_modules
and I was just seeing the links but not the content of the dependencies.Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions