pnpm outdated

Проверяет наличие устаревших пакетов. Проверка может быть ограничена подмножеством установленных пакетов путем указания аргументов (поддерживаются шаблоны).

The Latest column shows the highest of the version the declared specifier resolves to and the version the latest dist-tag points to. If the installed version is a prerelease, pnpm also considers the dist-tag that points to the newest version of the same prerelease channel, such as next pointing to 3.0.0-rc.1 when 3.0.0-rc.0 is installed. pnpm update --latest does not follow prerelease channel dist-tags.

Примеры:

pnpm outdated
pnpm outdated "*gulp-*" @babel/core

Опции#

--recursive, -r#

Проверяет наличие устаревших зависимостей в каждом пакете, находящемся в подкаталогах, или в каждом пакета рабочего пространства (воркспейса) при выполнении внутри рабочего пространства (воркспейса).

--filter <package_selector>#

Read more about filtering.

--global, -g#

Список устаревших глобальных пакетов.

--long#

Показывает подробности.

--format <format>#

  • Default: table
  • Type: table, list, json

Prints the outdated dependencies in the given format.

--compatible#

Prints only versions that satisfy specifications in package.json.

--dev, -D#

Checks only devDependencies.

--prod, -P#

Checks only dependencies and optionalDependencies.

--no-optional#

Doesn't check optionalDependencies.

--sort-by#

Specifies the order in which the output results are sorted. Currently only the value name is accepted.

--include-github-actions#

Added in: v11.16.0

Also check the GitHub Actions referenced by the repository's workflow files for updates. You can enable this by default by setting update.githubActions to true in pnpm-workspace.yaml. See Updating GitHub Actions.