Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] add resolutions support #91

Open
wujekbogdan opened this issue Feb 10, 2022 · 1 comment
Open

[Feature request] add resolutions support #91

wujekbogdan opened this issue Feb 10, 2022 · 1 comment

Comments

@wujekbogdan
Copy link

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

It would be great if synp supported it.

@antongolub
Copy link
Collaborator

antongolub commented Feb 10, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants