Skip to content
Discussion options

You must be logged in to vote

This is not possible to achieve because hoisting happens in the directory where the virtual store is located. And in a monorepo, there is a single virtual store at <monorepo>/node_modules/.pnpm. So you either have hoisting for all or for none.

But you can hoist specific packages using public-hoist-pattern

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@VanishMax
Comment options

@Mod5ied
Comment options

Answer selected by VanishMax
Comment options

You must be logged in to vote
1 reply
@zkochan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants