Repository navigation
Add private package support - #10
patrickheeney wants to merge 1 commit into
Conversation
|
I'm confused, you have some packages in your lerna repo that are private and others that are not? |
|
Closing due to inactivity. |
|
@thejameskyle Sorry, I missed this notification. Yes I have a private mono repo with private packages and some that get published to npm as public packages. The use case for this all the reasons you would use |
|
I don't understand the use case of having public and private packages. If things are public then their source code should be public too. I don't want to support mixing these |
|
There are dozens of use cases for private packages which I won't get into here. Not all my private packages are published to npm, but I would think supporting private packages would fall in line with the purpose of the tool: |
|
Perhaps you are also thinking that the mono repo is open source, it's not. We have a private git repo using lerna to manage it. We have some packages that sync to open source, but the mono repo is not. Lerna does not currently support private packages of any sort, this PR fixes that. |
|
I use lerna for a ton of private packages, it supports them fine. What you are asking for is local dependencies and mixing of local and remote, and I don't get the use case for that. |
|
We have some local dependencies to the project that are not published to npm, but bundled with the project itself. Npm supports |
|
Could you create an example repo with the structure you have in mind? |
|
I am not sure why the directory structure would matter with this, but I reckon something like: If you don't understand the use case (of |
|
Okay good luck |
|
Feel free. We don't get paid to work on this :) |
|
@kittens This is a PR that I took the time to write and submit? I wanted to contribute to the community and this repository, but I don't know how else to explain the importance of npm local packages, which this adds support for. |
|
In case there was some confusion: My comments about rolling my own or searching for other projects was not intended to be snarky, but rather ask if my time would be better spent finding an alternative solution vs attempting to get this re-opened. |
|
@patrickheeney Ah right, my bad. @thejameskyle I don't see why we shouldn't just support this flag, especially since the addition is so simple. We've even had some packages inside |
|
Sounds like a low complexity change to support; will be better when we have more tests? Also we can add some more to the readme about this (support public, private, local) etc - or add to #48 |
|
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. |
I am looking to use lerna to manage our monorepo, but we don't have packages published on
npm. This causesnpm installto fail onlerna bootstrapbecause the package was not found on the registry.I added a simple check to see if
private: trueis set inpackage.json. I am not sure if this is the best way to do it because it bypasses the version check. However, in my case I don't have a version because my dependencies look like this:Is there a better way to do this?