1- const columns = require ( 'cli-columns' )
21const libteam = require ( 'libnpmteam' )
32const { output } = require ( 'proc-log' )
43const { otplease } = require ( '../utils/auth.js' )
@@ -131,9 +130,11 @@ class Team extends BaseCommand {
131130 output . standard ( users . join ( '\n' ) )
132131 } else if ( ! this . npm . silent ) {
133132 const plural = users . length === 1 ? '' : 's'
134- const more = users . length === 0 ? '' : ':\n'
135- output . standard ( `\n@${ entity } has ${ users . length } user${ plural } ${ more } ` )
136- output . standard ( columns ( users , { padding : 1 } ) )
133+ const more = users . length === 0 ? '' : ':'
134+ output . standard ( `@${ entity } has ${ users . length } user${ plural } ${ more } ` )
135+ for ( const user of users ) {
136+ output . standard ( user )
137+ }
137138 }
138139 }
139140
@@ -145,9 +146,11 @@ class Team extends BaseCommand {
145146 output . standard ( teams . join ( '\n' ) )
146147 } else if ( ! this . npm . silent ) {
147148 const plural = teams . length === 1 ? '' : 's'
148- const more = teams . length === 0 ? '' : ':\n'
149- output . standard ( `\n@${ entity } has ${ teams . length } team${ plural } ${ more } ` )
150- output . standard ( columns ( teams . map ( t => `@${ t } ` ) , { padding : 1 } ) )
149+ const more = teams . length === 0 ? '' : ':'
150+ output . standard ( `@${ entity } has ${ teams . length } team${ plural } ${ more } ` )
151+ for ( const team of teams ) {
152+ output . standard ( `@${ team } ` )
153+ }
151154 }
152155 }
153156}
0 commit comments