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:
bootstrap respects --scope so I can pick the packages I want and reduce the time waiting for installation
bootstrap gets --skip-externals so it only does the symlink/prepublish
bootstrap gets --link-only (but this seems sort of annoyingly narrow when the other two are somewhat more generally applicable)
- 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.
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 bootstraphas 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:
bootstraprespects--scopeso I can pick the packages I want and reduce the time waiting for installationbootstrapgets--skip-externalsso it only does the symlink/prepublishbootstrapgets--link-only(but this seems sort of annoyingly narrow when the other two are somewhat more generally applicable)linkcommand that only symlinksWhile (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.