Skip to content

Commit bab3eb3

Browse files
committed
fix: fix dependency updater
1 parent 263c77f commit bab3eb3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/package.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,11 +676,12 @@ export default class Package {
676676

677677
// index dependencies
678678
for ( const dependency of dependencies ) {
679-
const id = `${ dependency.name }/${ dependency.location }`;
679+
const id = `${ dependency.name }/${ dependency.location }/${ dependency.current }/${ dependency.wanted }`;
680680

681681
if ( !index[ id ] ) {
682682
index[ id ] = {
683683
"name": dependency.name,
684+
"location": dependency.location,
684685
"current": dependency.current,
685686
"wanted": dependency.wanted,
686687
"latest": dependency.latest,
@@ -1527,6 +1528,7 @@ export default class Package {
15271528
// linked
15281529
dependencies.set( name, {
15291530
name,
1531+
location,
15301532
"linked": link,
15311533
} );
15321534
} )

0 commit comments

Comments
 (0)