66 */
77'use strict'
88exports [ `test/lib/dist-tag.js TAP add missing args > should exit usage error message 1` ] = `
9- npm dist-tag
9+ Error:
10+ Usage: npm dist-tag
1011
1112Modify package distribution tags
1213
@@ -21,11 +22,14 @@ Options:
2122
2223alias: dist-tags
2324
24- Run "npm help dist-tag" for more info
25+ Run "npm help dist-tag" for more info {
26+ "code": "EUSAGE",
27+ }
2528`
2629
2730exports [ `test/lib/dist-tag.js TAP add missing pkg name > should exit usage error message 1` ] = `
28- npm dist-tag
31+ Error:
32+ Usage: npm dist-tag
2933
3034Modify package distribution tags
3135
@@ -40,7 +44,9 @@ Options:
4044
4145alias: dist-tags
4246
43- Run "npm help dist-tag" for more info
47+ Run "npm help dist-tag" for more info {
48+ "code": "EUSAGE",
49+ }
4450`
4551
4652exports [ `test/lib/dist-tag.js TAP add new tag > should return success msg 1` ] = `
@@ -53,7 +59,8 @@ dist-tag add 1.0.0 to @scoped/another@7.7.7
5359`
5460
5561exports [ `test/lib/dist-tag.js TAP borked cmd usage > should show usage error 1` ] = `
56- npm dist-tag
62+ Error:
63+ Usage: npm dist-tag
5764
5865Modify package distribution tags
5966
@@ -68,7 +75,31 @@ Options:
6875
6976alias: dist-tags
7077
71- Run "npm help dist-tag" for more info
78+ Run "npm help dist-tag" for more info {
79+ "code": "EUSAGE",
80+ }
81+ `
82+
83+ exports [ `test/lib/dist-tag.js TAP ls global > should throw basic usage 1` ] = `
84+ Error:
85+ Usage: npm dist-tag
86+
87+ Modify package distribution tags
88+
89+ Usage:
90+ npm dist-tag add <pkg>@<version> [<tag>]
91+ npm dist-tag rm <pkg> <tag>
92+ npm dist-tag ls [<pkg>]
93+
94+ Options:
95+ [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
96+ [-ws|--workspaces]
97+
98+ alias: dist-tags
99+
100+ Run "npm help dist-tag" for more info {
101+ "code": "EUSAGE",
102+ }
72103`
73104
74105exports [ `test/lib/dist-tag.js TAP ls in current package > should list available tags for current package 1` ] = `
@@ -78,7 +109,8 @@ latest: 1.0.0
78109`
79110
80111exports [ `test/lib/dist-tag.js TAP ls on missing name in current package > should throw usage error message 1` ] = `
81- npm dist-tag
112+ Error:
113+ Usage: npm dist-tag
82114
83115Modify package distribution tags
84116
@@ -93,7 +125,9 @@ Options:
93125
94126alias: dist-tags
95127
96- Run "npm help dist-tag" for more info
128+ Run "npm help dist-tag" for more info {
129+ "code": "EUSAGE",
130+ }
97131`
98132
99133exports [ `test/lib/dist-tag.js TAP ls on missing package > should log no dist-tag found msg 1` ] = `
@@ -133,7 +167,8 @@ exports[`test/lib/dist-tag.js TAP remove existing tag > should return success ms
133167`
134168
135169exports [ `test/lib/dist-tag.js TAP remove missing pkg name > should exit usage error message 1` ] = `
136- npm dist-tag
170+ Error:
171+ Usage: npm dist-tag
137172
138173Modify package distribution tags
139174
@@ -148,7 +183,9 @@ Options:
148183
149184alias: dist-tags
150185
151- Run "npm help dist-tag" for more info
186+ Run "npm help dist-tag" for more info {
187+ "code": "EUSAGE",
188+ }
152189`
153190
154191exports [ `test/lib/dist-tag.js TAP remove non-existing tag > should log error msg 1` ] = `
0 commit comments