I looked at this answer, which shows you how to install npm modules from private git (sub)folders. This works correctly for me when I do:
npm install git+ssh://[email protected]:myaccount/myprivate.git
, my main application can then call the code in the private module.
But when someone updates the module in the github.com:myaccount/myprivate.git
location, I want my main application to receive these updated changes.
What I want to do is:
npm install
on the main applicationAs a work-around I have to:
npm install git+ssh://[email protected]:myaccount/myprivate.git
in the main applicationYou could use git commit hashes to keep track of your changes:
npm i --save git+ssh://[email protected]:myaccount/myprivate.git#b0f2009
or tags
npm i --save git+ssh://[email protected]:myaccount/myprivate.git#v0.0.2