@@ -195,6 +195,9 @@ class Outdated extends ArboristWorkspaceCmd {
195
195
wanted : wanted . version ,
196
196
latest : latest . version ,
197
197
workspaceDependent : edge . from ?. isWorkspace ? edge . from . pkgid : null ,
198
+ dependentLocation : edge . from ?. name
199
+ ? edge . from ?. location
200
+ : 'global' ,
198
201
dependent : edge . from ?. name ?? 'global' ,
199
202
homepage : packument . homepage ,
200
203
} )
@@ -226,7 +229,7 @@ class Outdated extends ArboristWorkspaceCmd {
226
229
'Latest' ,
227
230
'Location' ,
228
231
'Depended by' ,
229
- ...long ? [ 'Package Type' , 'Homepage' ] : [ ] ,
232
+ ...long ? [ 'Package Type' , 'Homepage' , 'Dependent Location' ] : [ ] ,
230
233
] . map ( h => bold . underline ( h ) ) ,
231
234
...list . map ( ( d ) => [
232
235
d . current === d . wanted ? yellow ( d . name ) : red ( d . name ) ,
@@ -235,7 +238,7 @@ class Outdated extends ArboristWorkspaceCmd {
235
238
blue ( d . latest ) ,
236
239
d . location ?? '-' ,
237
240
d . workspaceDependent ? blue ( d . workspaceDependent ) : d . dependent ,
238
- ...long ? [ d . type , blue ( d . homepage ?? '' ) ] : [ ] ,
241
+ ...long ? [ d . type , blue ( d . homepage ?? '' ) , d . dependentLocation ] : [ ] ,
239
242
] ) ,
240
243
] , {
241
244
align : [ 'l' , 'r' , 'r' , 'r' , 'l' ] ,
@@ -252,7 +255,7 @@ class Outdated extends ArboristWorkspaceCmd {
252
255
d . current ? `${ d . name } @${ d . current } ` : 'MISSING' ,
253
256
`${ d . name } @${ d . latest } ` ,
254
257
d . dependent ,
255
- ...this . npm . config . get ( 'long' ) ? [ d . type , d . homepage ] : [ ] ,
258
+ ...this . npm . config . get ( 'long' ) ? [ d . type , d . homepage , d . dependentLocation ] : [ ] ,
256
259
] . join ( ':' ) ) . join ( '\n' )
257
260
}
258
261
@@ -268,7 +271,10 @@ class Outdated extends ArboristWorkspaceCmd {
268
271
latest : d . latest ,
269
272
dependent : d . dependent ,
270
273
location : d . path ,
271
- ...this . npm . config . get ( 'long' ) ? { type : d . type , homepage : d . homepage } : { } ,
274
+ ...this . npm . config . get ( 'long' ) ? {
275
+ type : d . type ,
276
+ homepage : d . homepage ,
277
+ dependentLocation : d . dependentLocation } : { } ,
272
278
}
273
279
acc [ d . name ] = acc [ d . name ]
274
280
// If this item alread has an outdated dep then we turn it into an array
0 commit comments