From 8d268d6e2d72ad4f8a48f5919ec80e15cc01a2be Mon Sep 17 00:00:00 2001 From: khai96_ Date: Sat, 27 Jan 2024 20:55:32 +0700 Subject: [PATCH 1/2] docs(cli): correct `--latest` to follow merged PR https://github.com/pnpm/pnpm/pull/7466 --- docs/cli/update.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cli/update.md b/docs/cli/update.md index 89870f359072..5ba1e6a31105 100644 --- a/docs/cli/update.md +++ b/docs/cli/update.md @@ -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 | @@ -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 older than the `latest` tag (i.e. it will not downgrade prereleases). ### --global, -g From c9de2db03aeacb9ac69bf049dcefdd9566612191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kh=E1=BA=A3i?= Date: Sat, 27 Jan 2024 21:33:26 +0700 Subject: [PATCH 2/2] docs(cli): tweak wording --- docs/cli/update.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cli/update.md b/docs/cli/update.md index 5ba1e6a31105..652e6dbb3a2b 100644 --- a/docs/cli/update.md +++ b/docs/cli/update.md @@ -60,7 +60,7 @@ pnpm --recursive update typescript@latest ### --latest, -L -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 older than the `latest` tag (i.e. it will not downgrade prereleases). +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