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
The specific scenario is that I created a pnpm monorepo and used the documentation website as a module, but the module relies on vuepress. Unfortunately, the official support for pnpm is to use shamefully-hoist=true, which seems to cause The dependencies of node_modules of the root module are flattened. So I want to know, is there a way for pnpm to handle this problem?
ref: Yarn's solution to subdirectories not as monorepo modules: yarnpkg/berry#2606
ref: Vuepress's official statement on pnpm support: vuepress/core#161
expect
Configure shamefully-hoist=true in the submodule's .npmrc, but only affects the submodule's node_modules/.pnpm
status quo
Use yarn as a separate package manager for submodules
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The specific scenario is that I created a pnpm monorepo and used the documentation website as a module, but the module relies on vuepress. Unfortunately, the official support for pnpm is to use
shamefully-hoist=true
, which seems to cause The dependencies of node_modules of the root module are flattened. So I want to know, is there a way for pnpm to handle this problem?expect
Configure
shamefully-hoist=true
in the submodule's .npmrc, but only affects the submodule's node_modules/.pnpmstatus quo
Use yarn as a separate package manager for submodules
Beta Was this translation helpful? Give feedback.
All reactions