diff options
author | isaacs <i@izs.me> | 2020-03-03 10:50:29 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-05-08 04:11:53 +0300 |
commit | 14997fb0084c642aa8b0c46c284835659f5752f7 (patch) | |
tree | c80415797b239c152b0ce498e2a9561f3cfbc728 /lib | |
parent | 47737e6ce74b3561ab3591630fd7d73d9ed81e32 (diff) |
libnpmteam@2.0.1
Also add a comment explaining an otherwise confusing config option. The
'description' option to libnpmteam means "the description of the team
being created", but in npm options lingo, it's a boolean config meaning
"show the description in search output".
Diffstat (limited to 'lib')
-rw-r--r-- | lib/team.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/team.js b/lib/team.js index 0ab3d09c7..eafac324c 100644 --- a/lib/team.js +++ b/lib/team.js @@ -53,6 +53,9 @@ team.completion = function (opts, cb) { function team ([cmd, entity = '', user = ''], cb) { // Entities are in the format <scope>:<team> + // XXX: "description" option to libnpmteam is used as a description of the + // team, but in npm's options, this is a boolean meaning "show the + // description in npm search output". Hence its being set to null here. otplease({ ...npm.flatOptions, description: null }, opts => { entity = entity.replace(/^@/, '') switch (cmd) { |