davideicardi / live-plugin-manager

Plugin manager and installer for Node.JS
MIT License
225 stars 43 forks source link

Adds support for installing a single package from a private repo #60

Open armandoisaac opened 2 years ago

armandoisaac commented 2 years ago

This PR adds support for installing an NPM package from a private repository while installing all other packages from another repo. This PR also allows passing the encoded token to basic authentication in the event we already have it as base64.

Scenario to cover: A package has been pushed to a private repo. While installing, the NPM package needs to be installed from the private repo while the dependencies needs to come from the default public repository.

davideicardi commented 2 years ago

Thanks! I will review it in the next days. Just one consideration: usually in these cases I configure the npm registry to mirror the public registry. So that I can use a single registry for all... Maybe you can also solve in this way?

armandoisaac commented 2 years ago

Thanks @davideicardi , unfortunately I can't modify the repo settings as was configured like this per company policy. I hope this PR can help this scenario and other ones.