New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: pnpm link -r #3026
Comments
You can use a workaround. In the root {
"pnpm": {
"overrides": {
"foo": "<dir>"
}
} then just run related: #3054 |
@zkochan This is not working as expected for me:
Still links to
|
what about this:
|
@zkochan Nope, same result. Is Further background... I ran into this because my I found relative paths in my |
|
@zkochan Well that's a good point, packages intended to be used as a dependency generally shouldn't have a lockfile committed. But top level packages like a monorepo may have a lockfile so a dev team can all work against the same deps and have repeatable builds. In those cases, CI would fail if the lockfile contained paths only present in a local dev environment. I assume this is why I have a complex case where I'm trying to fork transient dependencies as well as direct dependencies. For example, my main monorepo depends upon a package I authored named
|
no, it works in non-workspaces as well. What pnpm version do you use? This feature was added in 5.10.1: https://pnpm.js.org/en/package_json#pnpmoverrides |
@zkochan
Problem is, in apps I see the symlink from shared folder, but runninig inside apps/*, command like: |
@igortas this is not really related to this issue but if you need rimraf to be accessible in each package of the monorepo, then you need to install it as a dependencies in the root of the monorepo. Like in case of the repository, these packages are available in all subpackages: Lines 27 to 59 in 6e4becd
|
I'm also looking for this feature. In Yarn they call it |
When running
pnpm link -r <dir>
, I expectedpnpm
to link the local package at<dir>
(outside the workspace) to all the packages in my workspace. I found out that wasn't possible:ERROR Unknown option: 'recursive'
It would be great if
pnpm link
(andunlink
) could be recursive. A flag like the one suggested in #1228 would be good too—only link if the target package name is found in the workspace packages' dependencies.The text was updated successfully, but these errors were encountered: