antfu-collective / taze

🥦 A modern cli tool that keeps your deps fresh
MIT License
2.66k stars 86 forks source link

fix: support nested `resolutions` and `overrides` #103

Closed lneveu closed 7 months ago

lneveu commented 7 months ago

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.