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
Do you want to request a feature or report a bug?
feature
What is the current behavior?
Yarn workspaces' nohoist config is ignored in public packages
What is the expected behavior?
I would like to be able to use the nohoist option in a public package. We are trying to use husky for git hooks, but husky is hoisted out of the public package we are working on. This means that husky cannot be found when the git hooks attempt to run (so they are ignored).
Is there a good reason that the hoist config option was disabled for public packages? It seems like it would just make things more flexible for these kinds of use cases.
Please mention your node.js, yarn and operating system version.
Node - v10.15.0, Yarn - 1.19.1, OS - Windows 10 Home 1903
The text was updated successfully, but these errors were encountered:
+1.
I have a similar issue, where @babel/runtime is hoisted out of the package and resolved to a relative path, breaking all consuming apps. Making the package private and adding @babel/runtime to nohoist works.
+1 on a babel. We are working on a monorepo where. due to an earlier mistake, some packages have babel 7 and some have babel 6 and we're encountering all sorts of version mismatch issues. A short term solution we are investigation is nohoisting @babel to prevent the mismatching. The packages that use babel 7 though, still need to be published.
Do you want to request a feature or report a bug?
feature
What is the current behavior?
Yarn workspaces' nohoist config is ignored in public packages
What is the expected behavior?
I would like to be able to use the nohoist option in a public package. We are trying to use
husky
for git hooks, buthusky
is hoisted out of the public package we are working on. This means that husky cannot be found when the git hooks attempt to run (so they are ignored).Is there a good reason that the hoist config option was disabled for public packages? It seems like it would just make things more flexible for these kinds of use cases.
Please mention your node.js, yarn and operating system version.
Node - v10.15.0, Yarn - 1.19.1, OS - Windows 10 Home 1903
The text was updated successfully, but these errors were encountered: