Skip to content

[Feature] support method to /only/ link packages #341

@seansfkelley

Description

@seansfkelley

Use case: I add a dependency to an existing package on an existing package. All I want to do is create that one symlink between the two, but lerna bootstrap has to go through the whole rigamarole of checking and installing everything, which can be slow (especially if the repo is in some kind of intermediate state due to adding/removing a bunch of stuff, which it often is when I want to do this operation).

Possible solutions:

  1. bootstrap respects --scope so I can pick the packages I want and reduce the time waiting for installation
  2. bootstrap gets --skip-externals so it only does the symlink/prepublish
  3. bootstrap gets --link-only (but this seems sort of annoyingly narrow when the other two are somewhat more generally applicable)
  4. Lerna gets a new link command that only symlinks

While (1) should probably exist for general consistency, I think the ideal solution to solve this particular problem is actually (4). Given that #358 adds more stuff to bootstrap that I don't care about running when I am in the above situation, having a stripped-down command instead of a bunch of flags to turn off useful bootstrap behaviors seems preferable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions