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
Say I have a monorepo and I want to symlink a package I am developing locally (but outside of the monorepo).
There are multiple packages using this package in my project.
I want a command that will pnpm link <pkg> if <pkg> is already present in the package.json for all packages. This would respect --scope too.
The workaround would be using lerna recursive exec -- \$PNPM_ROOT_PATH/scripts/link-if-preset.sh, and putting the logic in there. Would be better to use pnpm recursive exec (#1227).
Naming
Other names might be symlink, dev-link, local-link.
The text was updated successfully, but these errors were encountered:
I think it would be good to have this as the default behavior. So link would only link packages that are dependencies and something like add-link would add a new dependency as link. That will be a breaking change though, so for now, maybe a new command would be fine. Maybe link-dep
Say I have a monorepo and I want to symlink a package I am developing locally (but outside of the monorepo).
There are multiple packages using this package in my project.
I want a command that will
pnpm link <pkg>
if<pkg>
is already present in thepackage.json
for all packages. This would respect--scope
too.The workaround would be using
lerna recursive exec -- \$PNPM_ROOT_PATH/scripts/link-if-preset.sh
, and putting the logic in there. Would be better to usepnpm recursive exec
(#1227).Naming
Other names might be
symlink
,dev-link
,local-link
.The text was updated successfully, but these errors were encountered: