synp
synp copied to clipboard
[Feature request] add `resolutions` support
Yarn supports dependencies override with resolutions
. In NPM 8.3 there's an equivalent feature overrides
.
It would be great if synp
supported it.
Hmm... Cannot imagine interop between these apis. For example:
"resolutions": {
"foo/**/bar": "1.0.0"
}
Ok, we can traverse node_modules
and resolve paths for npm:
"overrides": {
"foo": {
"a": {"bar": "1.0.0"},
"b": {"c": {"bar": "1.0.0"}}
}
}
But how to convert it back into a glob pattern?