@@ -676,7 +676,6 @@ export default class Package {
676676 // not-installed dependency
677677 if ( ! dependency . location ) {
678678 dependency . location = path . join ( this . root , "node_modules" , name ) ;
679- dependency . notInstalled = true ;
680679 }
681680
682681 if ( index [ dependency . location ] ) {
@@ -705,7 +704,6 @@ export default class Package {
705704 // add not-installed / linked deps
706705 for ( const dependency of linkedDependencies . values ( ) ) {
707706 if ( index [ dependency . location ] ) {
708- index [ dependency . location ] . notInstalled = dependency . notInstalled ;
709707 index [ dependency . location ] . linked = dependency . linked ;
710708 }
711709 else {
@@ -725,7 +723,7 @@ export default class Package {
725723 let include ;
726724
727725 // not-installed / linked
728- if ( dependency . notInstalled || dependency . linked ) {
726+ if ( dependency . current || dependency . linked ) {
729727 include = true ;
730728 dependency . updatable = true ;
731729 }
@@ -796,9 +794,12 @@ export default class Package {
796794 "align" : "end" ,
797795 "width" : 20 ,
798796 "format" : value => {
799- return value
800- ? ` ${ value } `
801- : " - " ;
797+ if ( value ) {
798+ return ` ${ value } ` ;
799+ }
800+ else {
801+ return ansi . error ( " NOT INSTALLED " ) ;
802+ }
802803 } ,
803804 } ,
804805 "wanted" : {
@@ -827,10 +828,7 @@ export default class Package {
827828 "width" : 20 ,
828829 "format" : ( value , row ) => {
829830 if ( ! value ) {
830- if ( row . notInstalled ) {
831- return ansi . error ( " NOT INSTALLED " ) ;
832- }
833- else if ( row . linked ) {
831+ if ( row . linked ) {
834832 return ansi . error ( " LINKED " ) ;
835833 }
836834 else {
@@ -1558,7 +1556,6 @@ export default class Package {
15581556 dependencies . set ( name , {
15591557 name,
15601558 location,
1561- "notInstalled" : true ,
15621559 } ) ;
15631560 }
15641561
0 commit comments