Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

It's possible to publish a specific package with Lerna?

Tags:

lerna

I have a mono-repository and need to publish a single package.

My repo structure:

example config

How can I do this, using Lerna?

like image 868
Tiago André Avatar asked Dec 06 '25 16:12

Tiago André


1 Answers

It's not possible using lerna, as stated in https://github.com/lerna/lerna/issues/1055

As I noted above, this is impossible due to the manner in which lerna coordinates versions with git tags (and the diff since the last one is what indicates which packages should be published).

If they are both independent, and you don’t want to publish them at the same time, then don’t use lerna, it’s clearly not necessary for your use case.

That said you can always use npm publish to publish any single package.

like image 99
Konrad Gałęzowski Avatar answered Dec 11 '25 12:12

Konrad Gałęzowski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!