Let's say my react project has a dependency on LibA which itself depends on LibB. Now, I want to extend functionality of LibA and LibB.
This is what I tried:
I forked LibB
I forked LibA and updated it's dependency to a local version of ForkedLibB
// LibB/package.json
{
"dependencies": {
"LibB": "file:/path/to/ForkedLibB"
}
}
ForkedLibA// Main/package.json
{
"dependencies": {
"LibA": "file:/path/to/ForkedLibA"
}
}
How can I make my workflow faster?
Right now for every change that I make to ForkedLibB, it appears that I have to rebuild ForkedLibB, switch to ForkedLibA, run yarn update, rebuild ForkedLibB, switch to Main and run yarn update again.
Is this how it has to be done? I can't afford to wait 2 minutes every time I add a small change.