Replies: 2 comments 1 reply
-
I just discovered this too. I'm in the process of migrating a newly formed monorepo from individual sandboxed project directories to use a global one, and I had planned to do it incrementally, however the inheritance from the root |
Beta Was this translation helpful? Give feedback.
-
For now that's the expected behaviour. In a future major we'll likely restrict that to only the project top-level & the home folder user config, but that's long-term. |
Beta Was this translation helpful? Give feedback.
-
Using Yarn 3.2.1.
nodeLinker: node-modules
.nodeLinker
because the default is PnP.When I run
yarn install
from the ".github/workflows/pr-status-bot" folder, Yarn seems to pick up thenodeLinker: node-modules
setting from the top-level yarnrc. (When I delete the top-level yarnrc, it uses PnP.)This was a bit surprising. Is there any way to tell Yarn to not search for additional yarnrcs in parent folders, e.g. a
noInherit: true
setting?My workaround is to put
nodeLinker: pnp
in the GitHub Action's yarnrc. Are there any other settings that might be unexpectedly inherited?Beta Was this translation helpful? Give feedback.
All reactions