Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Is there a way to use lerna packages without publishing it to npm ? #536
Thanks for your awesome work.
If have 10 packages inside the lerna, but all the packages are private which should not published to npm. Is there way i can use those packages ? Like will lerna will do npm link for all the packages something like that ?
One another question ?
Yeah. The --skip-git command will prevent any git commands. I use it with TFS repository. I also use it with a private npm repository. My private repo has some issues (that I'm tracking down) so I disable npm with --skip-npm. At it bundles up my packages, I execute npm publish in every package.
My publish command is typically:
There are two ways that I can think of, both of which you alluded to. You can set a
The other option, best for local development, is to use npm link to link your lerna modules into the global node modules, and then link from the global node modules to other node modules on the local file system (you can do this in one command, like
It does not -- Lerna locally symlinks packages, but doesn't use
I think until we have automated tests, the answer is technically no. However, I use a local verdaccio instance for development, and there's a lot of people using sinopia, so I'd be surprised if Lerna stopped working with private registries any time soon.