File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ const ls = async (args) => {
428
428
! ( node instanceof Arborist . Node ) || ( node [ _depth ] > depthToPrint )
429
429
return ( shouldSkipChildren )
430
430
? [ ]
431
- : [ ...node . edgesOut . values ( ) ]
431
+ : [ ...( node . target || node ) . edgesOut . values ( ) ]
432
432
. filter ( filterByEdgesTypes ( {
433
433
dev,
434
434
development,
Original file line number Diff line number Diff line change @@ -453,6 +453,7 @@ filter-by-child-of-missing-dep@1.0.0 {CWD}/ls-ls-loading-a-tree-containing-works
453
453
exports [ `test/lib/ls.js TAP ls loading a tree containing workspaces > should list workspaces properly 1` ] = `
454
454
filter-by-child-of-missing-dep@1.0.0 {CWD}/ls-ls-loading-a-tree-containing-workspaces
455
455
+-- a@1.0.0 -> {CWD}/ls-ls-loading-a-tree-containing-workspaces/a
456
+ | \`-- c@1.0.0
456
457
\`-- b@1.0.0 -> {CWD}/ls-ls-loading-a-tree-containing-workspaces/b
457
458
458
459
`
Original file line number Diff line number Diff line change @@ -1396,12 +1396,21 @@ t.test('ls', (t) => {
1396
1396
} ) ,
1397
1397
node_modules : {
1398
1398
a : t . fixture ( 'symlink' , '../a' ) ,
1399
- b : t . fixture ( 'symlink' , '../b' )
1399
+ b : t . fixture ( 'symlink' , '../b' ) ,
1400
+ c : {
1401
+ 'package.json' : JSON . stringify ( {
1402
+ name : 'c' ,
1403
+ version : '1.0.0'
1404
+ } )
1405
+ }
1400
1406
} ,
1401
1407
a : {
1402
1408
'package.json' : JSON . stringify ( {
1403
1409
name : 'a' ,
1404
- version : '1.0.0'
1410
+ version : '1.0.0' ,
1411
+ dependencies : {
1412
+ c : '^1.0.0'
1413
+ }
1405
1414
} )
1406
1415
} ,
1407
1416
b : {
You can’t perform that action at this time.
0 commit comments