Skip to content

Commit 4648f26

Browse files
committed
fix: remove tabular output from "npm team"
1 parent 40fcab4 commit 4648f26

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

lib/commands/team.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const columns = require('cli-columns')
21
const libteam = require('libnpmteam')
32
const { output } = require('proc-log')
43
const { 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

Comments
 (0)