Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(cli): correct --latest to follow merged PR #505

Merged
merged 2 commits into from
Jan 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/cli/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ When used without arguments, updates all dependencies.
| Command | Meaning |
|----------------------|--------------------------------------------------------------------------|
|`pnpm up` | Updates all dependencies, adhering to ranges specified in `package.json` |
|`pnpm up --latest` | Updates all dependencies, ignoring ranges specified in `package.json` |
|`pnpm up --latest` | Updates all dependencies to their latest versions |
|`pnpm up foo@2` | Updates `foo` to the latest version on v2 |
|`pnpm up "@babel/*"` | Updates all dependencies under the `@babel` scope |

Expand Down Expand Up @@ -60,7 +60,7 @@ pnpm --recursive update typescript@latest

### --latest, -L

Ignores the version range specified in `package.json`. Instead, the version specified by the `latest` tag will be used (potentially upgrading the packages across major versions).
Update the dependencies to their latest stable version as determined by their `latest` tags (potentially upgrading the packages across major versions) as long as the version range specified in `package.json` is lower than the `latest` tag (i.e. it will not downgrade prereleases).

### --global, -g

Expand Down
Loading