Is there an option to prevent pnpm from using a pnpm-workspace.yaml
file?
#4735
-
Use case: When testing my packages, I have folders for mini-projects which each contain a File structure:
When running Currently, my workaround is to specify the fixtures path in my |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
After browsing through the source code, I think I've found the option I'm looking for: Perhaps it might be a good idea to make this more visible in the documentation/help commands? (since |
Beta Was this translation helpful? Give feedback.
-
I was having a similar issue: I had a published library and an app that consume this package from the registry (not using While reading the docks to understand why the hack is that, I found this option:
In other words, if the app and the package is in the same repository, pnpm will link the package in the app no matter if we're using the workspace protocol or not. When I set @zkochan please don't get me wrong for what I'm about to say. I do understand the idea behind doing this automatically but IHMO (nobody asked but here we're), this is a terrible default behavior. I'd rather to explicitly inform pnpm about if I want the packages being linked or not using the |
Beta Was this translation helpful? Give feedback.
After browsing through the source code, I think I've found the option I'm looking for:
--ignore-workspace
(e.g.pnpm --ignore-workspace install
)Perhaps it might be a good idea to make this more visible in the documentation/help commands? (since
pnpm install --help
didn't make any mention of this command)