TIL



Можно оверрайдить красиво через переменную $<имя пакета> (но лучше не оверрайдить, конечно).





{

"dependencies": {

"foo": "^1.0.0"

},

"overrides": {

// BAD, will throw an EOVERRIDE error

// "foo": "^2.0.0"

// GOOD, specs match so override is allowed

// "foo": "^1.0.0"

// BEST, the override is defined as a reference to the dependency

"foo": "$foo",

// the referenced package does not need to match the overridden one

"bar": "$foo"

}

}