'Nohoist for entire package in yarn monorepo
Yarn added the nohoist
option to let us exclude individual dependencies from hoisting. But is there a way to exclude an entire package and its dependencies from hoisting?
Example: I have a backend package @mono/server
and a frontend package @mono/frontend
. I now want to exclude the entire backend package, its dependencies and sub-dependencies from hoisting.
Is this possible?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|