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
Thank me with a coffee.
I don't do this for profit but a small one-time donation would always put a smile on my face. Thanks!