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

Use deprecated info from lockfile if available #81

Open
ericcornelissen opened this issue Jan 22, 2025 · 0 comments
Open

Use deprecated info from lockfile if available #81

ericcornelissen opened this issue Jan 22, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@ericcornelissen
Copy link
Owner

I just discovered that package-lock.json can include "deprecated" information for dependencies. If this info is available, it should be used of getting the deprecation warnings through the npm CLI as it is more reliable (machine readable format, no network connection required) and avoids wasting resources (by re-installing dependencies).

As of writing, I don't know if this is available in all versions of package-lock.json or if other lockfiles (e.g. yarn.lock) include this info too.

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

No branches or pull requests

1 participant