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

fix: support nested resolutions and overrides #103

Conversation

lneveu
Copy link
Contributor

@lneveu lneveu commented Feb 4, 2024

Description

Fix support for overrides, pnpm.overrides and resolutions by handling properly nested dependencies and package managers custom syntaxes.

overrides

NPM allows you to specify a full object for overrides field.

Fix the "TypeError: currentVersion.startsWith is not a function" error.

Output with the latest version:
1

Output now:
2

pnpm.overrides

Fix support for custom ">" dependency selector used to target nested dependencies.

Fix the Invalid package name error.

Output with the latest version:
3

Output now:
4

resolutions

Fix support for nested resolutions custom syntax for Yarn.

Fix the ENOENT: no such file or directory error.

Output with the latest version:
5

Output now:
6

Linked Issues

Closes #96

Additional context

I also updated the README to reference the "depFields" option.

@antfu antfu merged commit 7e75208 into antfu-collective:main Feb 6, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants