Recently I needed to test a branch of a forked GitHub repository inside a project. Instead of cloning the fork and symlinking the package locally, I installed the remote dependency directly into the project.
To achieve I used the following command:
npm install user/repo.git#branchname
yarn add ssh://[email protected]:user/repo.git#branchname
💡 If you’re targeting a specific commit or tag, replace
branchname with the
I don’t run ads on my blog nor do I do this for profit. A donation however would always put a smile on my face though. Thanks!