Skip to content

Commit 7c878b9

Browse files
authored
docs: fix unpublish docs to auto generate usage (#4584)
Also add explanation of what `--force` does for unpublish
1 parent aec2bfe commit 7c878b9

File tree

8 files changed

+19
-10
lines changed

8 files changed

+19
-10
lines changed

docs/content/commands/npm-audit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ mistakes, unnecessary performance degradation, and malicious input.
246246
* Allow conflicting peerDependencies to be installed in the root project.
247247
* Implicitly set `--yes` during `npm init`.
248248
* Allow clobbering existing values in `npm pkg`
249+
* Allow unpublishing of entire packages (not just a single version).
249250

250251
If you don't have a clear idea of what you want to do, it is strongly
251252
recommended that you do not use this option!

docs/content/commands/npm-init.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ mistakes, unnecessary performance degradation, and malicious input.
199199
* Allow conflicting peerDependencies to be installed in the root project.
200200
* Implicitly set `--yes` during `npm init`.
201201
* Allow clobbering existing values in `npm pkg`
202+
* Allow unpublishing of entire packages (not just a single version).
202203

203204
If you don't have a clear idea of what you want to do, it is strongly
204205
recommended that you do not use this option!

docs/content/commands/npm-pkg.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ mistakes, unnecessary performance degradation, and malicious input.
199199
* Allow conflicting peerDependencies to be installed in the root project.
200200
* Implicitly set `--yes` during `npm init`.
201201
* Allow clobbering existing values in `npm pkg`
202+
* Allow unpublishing of entire packages (not just a single version).
202203
203204
If you don't have a clear idea of what you want to do, it is strongly
204205
recommended that you do not use this option!

docs/content/commands/npm-unpublish.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ description: Remove a package from the registry
66

77
### Synopsis
88

9-
To learn more about how the npm registry treats unpublish, see our <a
10-
href="https://docs.npmjs.com/policies/unpublish" target="_blank"
11-
rel="noopener noreferrer"> unpublish policies</a>
12-
13-
#### Unpublishing a single version of a package
9+
<!-- AUTOGENERATED USAGE DESCRIPTIONS START -->
10+
<!-- automatically generated, do not edit manually -->
11+
<!-- see lib/commands/unpublish.js -->
1412

1513
```bash
16-
npm unpublish [<@scope>/]<pkg>@<version>
14+
npm unpublish [<@scope>/]<pkg>[@<version>]
1715
```
1816

19-
#### Unpublishing an entire package
17+
<!-- automatically generated, do not edit manually -->
18+
<!-- see lib/commands/unpublish.js -->
19+
20+
<!-- AUTOGENERATED USAGE DESCRIPTIONS END -->
2021

21-
```bash
22-
npm unpublish [<@scope>/]<pkg> --force
23-
```
22+
To learn more about how the npm registry treats unpublish, see our <a
23+
href="https://docs.npmjs.com/policies/unpublish" target="_blank"
24+
rel="noopener noreferrer"> unpublish policies</a>
2425

2526
### Warning
2627

@@ -87,6 +88,7 @@ mistakes, unnecessary performance degradation, and malicious input.
8788
* Allow conflicting peerDependencies to be installed in the root project.
8889
* Implicitly set `--yes` during `npm init`.
8990
* Allow clobbering existing values in `npm pkg`
91+
* Allow unpublishing of entire packages (not just a single version).
9092

9193
If you don't have a clear idea of what you want to do, it is strongly
9294
recommended that you do not use this option!

docs/content/using-npm/config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ mistakes, unnecessary performance degradation, and malicious input.
616616
* Allow conflicting peerDependencies to be installed in the root project.
617617
* Implicitly set `--yes` during `npm init`.
618618
* Allow clobbering existing values in `npm pkg`
619+
* Allow unpublishing of entire packages (not just a single version).
619620

620621
If you don't have a clear idea of what you want to do, it is strongly
621622
recommended that you do not use this option!

lib/utils/config/definitions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@ define('force', {
740740
* Allow conflicting peerDependencies to be installed in the root project.
741741
* Implicitly set \`--yes\` during \`npm init\`.
742742
* Allow clobbering existing values in \`npm pkg\`
743+
* Allow unpublishing of entire packages (not just a single version).
743744
744745
If you don't have a clear idea of what you want to do, it is strongly
745746
recommended that you do not use this option!

tap-snapshots/test/lib/utils/config/definitions.js.test.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ mistakes, unnecessary performance degradation, and malicious input.
659659
* Allow conflicting peerDependencies to be installed in the root project.
660660
* Implicitly set \`--yes\` during \`npm init\`.
661661
* Allow clobbering existing values in \`npm pkg\`
662+
* Allow unpublishing of entire packages (not just a single version).
662663
663664
If you don't have a clear idea of what you want to do, it is strongly
664665
recommended that you do not use this option!

tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ mistakes, unnecessary performance degradation, and malicious input.
490490
* Allow conflicting peerDependencies to be installed in the root project.
491491
* Implicitly set \`--yes\` during \`npm init\`.
492492
* Allow clobbering existing values in \`npm pkg\`
493+
* Allow unpublishing of entire packages (not just a single version).
493494
494495
If you don't have a clear idea of what you want to do, it is strongly
495496
recommended that you do not use this option!

0 commit comments

Comments
 (0)