@@ -319,6 +319,7 @@ module.exports = cls => class IsolatedReifier extends cls {
319319 path : join ( proxiedIdealTree . root . localPath , location ) ,
320320 realpath : join ( proxiedIdealTree . root . localPath , location ) ,
321321 resolved : node . resolved ,
322+ version : pkg . version ,
322323 package : pkg ,
323324 }
324325 newChild . target = newChild
@@ -354,6 +355,7 @@ module.exports = cls => class IsolatedReifier extends cls {
354355 return
355356 }
356357 memo . add ( key )
358+
357359 let from , nmFolder
358360 if ( externalEdge ) {
359361 const fromLocation = join ( 'node_modules' , '.store' , key , 'node_modules' , node . name )
@@ -367,8 +369,9 @@ module.exports = cls => class IsolatedReifier extends cls {
367369 const processDeps = ( dep , optional , external ) => {
368370 optional = ! ! optional
369371 external = ! ! external
370- const binNames = dep . package . bin && Object . keys ( dep . package . bin ) || [ ]
371372
373+ const location = join ( nmFolder , dep . name )
374+ const binNames = dep . package . bin && Object . keys ( dep . package . bin ) || [ ]
372375 const toKey = getKey ( dep )
373376
374377 let target
@@ -393,7 +396,7 @@ module.exports = cls => class IsolatedReifier extends cls {
393396 binPaths : [ ] ,
394397 isTop : false ,
395398 optional,
396- location : join ( nmFolder , dep . name ) ,
399+ location : location ,
397400 path : join ( dep . root . localPath , nmFolder , dep . name ) ,
398401 realpath : target . path ,
399402 name : toKey ,
@@ -434,6 +437,9 @@ module.exports = cls => class IsolatedReifier extends cls {
434437 }
435438
436439 processEdges ( proxiedIdealTree , false )
440+ for ( const node of proxiedIdealTree . workspaces ) {
441+ processEdges ( node , false )
442+ }
437443 root . children . forEach ( c => c . parent = root )
438444 root . children . forEach ( c => c . root = root )
439445 root . root = root
0 commit comments