One of my projects must rely on package a, package a depends on package b; (Neither of these two bags was built by myself);
But the test found a BUG in package B, and now after modification, PR; However, who knows when the author of Package B can merge my PR;
Now, how do I configure package.json to quickly take effect after I modify the B package? Is there any way?
Modify the local B package directly. Do not update the B package until the original author accepts your pr.
Fork B package, changed its name to B-fix, modified the bug and released it to npm. then the project will use this B-fix package later. when the author of the b package accepts your pr, you will exchange the b package back.