Skip to content
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

pnpm recursive link-if-present foo #1228

Open
vjpr opened this issue Jun 14, 2018 · 1 comment
Open

pnpm recursive link-if-present foo #1228

vjpr opened this issue Jun 14, 2018 · 1 comment
Labels
area: link area: monorepo Everything related to the pnpm workspace feature type: feature

Comments

@vjpr
Copy link
Contributor

vjpr commented Jun 14, 2018

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.

@zkochan zkochan added the area: monorepo Everything related to the pnpm workspace feature label Jun 23, 2018
@zkochan
Copy link
Member

zkochan commented Jun 23, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: link area: monorepo Everything related to the pnpm workspace feature type: feature
Projects
None yet
Development

No branches or pull requests

2 participants