pnpm update
Aliases: up
, upgrade
pnpm update
updates packages to their latest version based on the specified
range.
Parametresiz bir şekilde kullanıldığı zaman, tüm kütüphaneleri günceller.
Kısaca;
Komut | İşlevi |
---|---|
pnpm up | Updates all dependencies, adhering to 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 |
Selecting dependencies with patterns
You can use patterns to update specific dependencies.
Update all babel
packages:
pnpm update "@babel/*"
Update all dependencies, except webpack
:
pnpm update "\!webpack"
Patterns may also be combined, so the next command will update all babel
packages, except core
:
pnpm update "@babel/*" "\!@babel/core"
Parametreler
--recursive, -r
Concurrently runs update in all subdirectories with a package.json
(excluding
node_modules).
Şu şekilde kullanılır:
pnpm --recursive update
# updates all packages up to 100 subdirectories in depth
# 100 adete kadar alt dizindeki kütüphaneleri günceller
pnpm --recursive update --depth 100
# çalışma alanındaki tüm typescript kütüphanelerini, son sürüme günceller
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 lower than the latest
tag (i.e. it will not downgrade prereleases).
--global, -g
Global olarak yüklenen kütüphaneleri/paketleri günceller.