Is there a way to exclude a specific package from hoisting in PNPM?

Viewed 1294

YARN has a nohoist option to prevent from hoisting a specific package.

Does PNPM have an equivalent option?

1 Answers

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/*

Related