Skip to content

[rush] "rush add" should be able to add unpublished locally-linked projects #991

@cortopy

Description

@cortopy

I come from the lerna world, and I can't get my head round the fact that you can't add -p <package> when that package is internal and has not been published yet.

When you do lerna add it will first check the npm registry, and if none available it will check if it's one of the packages in the monorepo.

For now, I'm adding a line in the package.json of each file. But this forces me to do rush update -p --full each time, which is cumbersome.

How does one link dependencies within the monorepo itself with Rush? If there's a way I'd love to know. If not, I'd love something like lerna even more

The only information I could find about linking packages is this issue and the solution does not seem to be supported in rushjs 5.

Metadata

Metadata

Labels

bugSomething isn't working as intendedeffort: easyProbably a quick fix. Want to contribute? :-)help wantedIf you're looking to contribute, this issue is a good place to start!needs more infoWe can't proceed because we need a better repro or an answer to a question

Type

No type

Projects

Status

Closed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions