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

[Question] Using lerna with --use-git-version flag #1179

Closed
chinchang opened this issue Jan 4, 2018 · 4 comments
Closed

[Question] Using lerna with --use-git-version flag #1179

chinchang opened this issue Jan 4, 2018 · 4 comments

Comments

@chinchang
Copy link

From the docs (https://github.com/lerna/lerna#--use-git-version):

This allows packages to be distributed via git repos if eg. packages are private and private npm repo is not an option.

Does this also mean that with use-git-version flag lerna should publish the packages on git instead of npm registry? Confused because I found no such code in the publishCommand file.

@zenflow
Copy link
Contributor

zenflow commented Jan 5, 2018

@chinchang Yes, I believe that's the idea. Check #1033 (comment) for a bit more info.

@evocateur
Copy link
Member

I really have no idea, I assume --use-git-version folks always use --skip-npm when they call lerna publish, so the git tags get propagated but the registry is never sent a package tarball. I don't altogether understand the use-case, to be honest.

@evocateur
Copy link
Member

To be clear, Lerna will never actually do all that complicated git stuff for you. It just modifies the version pins appropriately.

@lock
Copy link

lock bot commented Dec 27, 2018

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants