How can I fork and patch node transitions with NPM?

I am using a browser and would like to modify their dependency browser-pack

where they are using UMD. I created a fork and would like to use this forked one browser-pack

in my project.

I know how I can specify a dependency on the github url, but how do I change the transitive dependency browserify

to use my forked one browser-pack

?

Of course, only a solution that works in a team (without being able to customize it) is a good solution for me. Considering mine package.json

looks like this.

{
    "name": "X",
    "version": "2.0.0",
    "dependencies": {
        "browserify": "^4.2.3"
    }
}

      

+3


source to share


1 answer


Ok, it looks like solutions like @ d11wtq pointed this out to use npm shrinkwrap

, unfortunately we have to redo the changes every time we add a new dependency to npm

. Thanks to everyone who contributes to these questions.



0


source







All Articles