pnpm outdated
Checks for outdated packages, runtimes (node, deno, bun declared in
devEngines.runtime, engines.runtime, or through the runtime: / tool:
protocol), package managers (pnpm, npm, yarn, bun declared in
devEngines.packageManager or packageManager), Cargo crates (Cargo.toml
when cargo.enabled is true), and Python packages
(pyproject.toml when python.enabled is
true). The check can be limited to a subset of the declared dependencies,
runtimes, or package managers by providing arguments, including crate:<name>
for Cargo crates and pypi:<name> for Python packages. Patterns support *
wildcards, and a leading ! excludes matching names. Python selectors ignore case and treat runs of dots, underscores, and hyphens as one hyphen. Cargo selectors match both the dependency alias and the crate name.
pnpm outdated exits with code 1 when any dependency is outdated.
Without a lockfile, the Current column shows the version installed in
node_modules. If the dependency is not installed, it shows the lowest version
allowed by the declared range. Cargo and Python checks still require their
ecosystem lockfiles.
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>#
Читайте більше про фільтрування.
--global, -g#
Виводить список глобальних застарілих пакунків.
--long#
Докладний вивід.
--format <format>#
- Стандартно: ** table**
- Тип: table, list, json
Виводить застарілі залежності у вказаному форматі.
--json#
Shorthand for --format json.
--no-table#
Shorthand for --format list.
--compatible#
Виводить лише версії, які відповідають специфікаціям у package.json.
--dev, -D#
Перевіряє лише devDependencies.
--prod, -P, --production#
Перевіряє лише dependencies та optionalDependencies.
--no-optional#
Не перевіряє optionalDependencies.
--optional#
Checks optionalDependencies.
--sort-by#
Визначає порядок сортування результатів виводу. Наразі приймається лише значення name. By default, results are sorted by the size of the version change, then by name.
--notes#
Print the release notes between the current and the latest version below each outdated package. Notes are read from registries declared with serverType: pnpr. The notes of a release that published several packages are printed once, above the notes of the versions it published. Between two stable versions, the notes of prereleases are left out. With --json, each entry gets a releaseNotes field.
--include-github-actions#
Також перевіряйте наявність оновлень у GitHub Actions, на які посилаються файли робочих процесів репозиторію. You can enable this by default by setting update.githubActions to true in pnpm-workspace.yaml. See Updating GitHub Actions.