Clone your fork :
git clone [email protected]:YOU/FORKAdd the original repo as an remote :
git remote add upstream [email protected]:HIM/BASEHack away.
You can also merge other pull requests. First get the pull request ID from the original repo and then pull :
git pull [email protected]:HIM/BASE/refs/pull/153/headTo avoid publishing on npm, branch with a name referencing the original module version :
git checkout -b 1.1.0-a- In
.gitignore, remove lines referring to the build folder (e.g.distorbuild). - Build the project (e.g.
npm run build). - Check that
package.jsonhas amainproperty linking to the build entry point (e.g.dist/index.js).
In your app's package.json, assign the branch of your fork instead of the usual npm version :
{
"dependencies": {
"module": "YOU/FORK#1.1.0-a"
}
}git fetch upstream
git checkout master
git merge upstream/masterThen branch it, build it, use it again.
