I have two Typescript projects.
Context: ProjectA depends upon a certain ProjectB branch project
ProjectB git branches:
main
new_branch
ProjectA package.json
"dependencies": {
"@projectB": "git+https://github.com/projectB.git#new_branch",
}
What I want to achieve?
When I execute yarn install
to make sure that the dependencies from the new_branch
are loaded in node_modules
folder of projectA
.
What actually happens?
When I execute yarn install
, the dependencies from main
branch are loaded.
What I tried?
- I deleted
node_modules
&build
folders and tried to runyarn install
again which did not work. - I deleted
yarn.lock
but the project split another errors that are not related to my changes from thenew_branch
at all. - I deleted the
@projectB
:git+https://github.com/projectB.git#new_branch
dependency from thepackage.json
file and I added it viayarn add projectB@git+https://github.com/projectB.git#new_branch
which did not work.