YARN has a nohoist
option to prevent from hoisting a specific package.
Does PNPM have an equivalent option?
As of pnpm v6.7, pnpm does not allow to exclude from hoisting. With pnpm you define which package should be hoisted not which should not be hoisted.
To hoist nothing, you may set hoist=false
in .npmrc
.
To hoist only the babel packages, you may set hoist-pattern[]=@babel/*