Commit ca53c21
docs: add workspace usage examples (#8745)
## Summary
This PR adds workspace usage examples to the `npm publish` documentation
to address confusion about the proper syntax for publishing workspaces.
## Related issue
Fixes #3543
## What changed
- Added an "Examples" section to
`docs/lib/content/commands/npm-publish.md`
- Included clear examples for:
- Publishing the current directory
- Publishing a specific workspace
- Publishing multiple workspaces
- Publishing all workspaces
## Why this change is needed
Users were confused about the proper syntax for `npm publish
--workspace`. The documentation had no examples demonstrating workspace
usage, which made it difficult for users to understand how to use this
feature.
## Type of change
- [x] Documentation improvement
- [ ] Bug fix
- [ ] New feature
## Testing
- [x] Documentation builds without errors
- [x] Examples are syntactically correct and follow npm CLI conventions
## Checklist
- [x] Examples added to documentation
- [x] Commit message follows Conventional Commits format
- [x] References issue #3543 in commit message
Co-authored-by: Max Black <[email protected]>1 parent e71ca0e commit ca53c21
1 file changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
15 | 41 | | |
16 | 42 | | |
17 | 43 | | |
| |||
0 commit comments