synp icon indicating copy to clipboard operation
synp copied to clipboard

[Feature request] add `resolutions` support

Open wujekbogdan opened this issue 3 years ago • 1 comments

Yarn supports dependencies override with resolutions. In NPM 8.3 there's an equivalent feature overrides.

It would be great if synp supported it.

wujekbogdan avatar Feb 10 '22 12:02 wujekbogdan

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?

antongolub avatar Feb 10 '22 21:02 antongolub