Skip to content

Commit e0061d1

Browse files
committed
fix: fix outdated dependency detection
1 parent b68fe2e commit e0061d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ export default class Package {
787787
for ( const spec of specs ) {
788788

789789
// outdated dependency
790-
spec.outdated = spec.wanted !== spec.latest;
790+
spec.outdated = spec.wanted !== spec.latest && new SemanticVersion( spec.latest ).gt( spec.wanted );
791791

792792
// include installed, updatable deps by default
793793
let include;

0 commit comments

Comments
 (0)