ext / ext/npm-pkg-lint

Dependencies with * as version range fetches version non-existing 0.0.0

Open
#325 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
9
Forks
1
Avg merge
38m
Merged PRs (30d)
1

Description

Given a dependency such as:

```json
{
"peerDependencies": {
"awesome-lib": "*"
}
}
```

This yields the error:

> Warning: 3:5 warning "awesome-lib@0.0.0" is not published to the NPM registry no-deprecated-dependency

In this case we should fetch the lowest published version to check against.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the no-deprecated-dependency check for peerDependencies and the code that resolves "*" against the NPM registry. Reproduce the issue with the package.json example, then verify that the lowest published version is used instead of 0.0.0 and that the warning no longer reports a nonexistent version.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.