pnpm outdated
檢查是否有過時的相依套件。 此命令可以通過提供參數來限制為已安裝 packages的一個子集(支持 patterns)。
範例:
pnpm outdated
pnpm outdated "*gulp-*" @babel/core
參數
--recursive, -r
在發現的所有子資料夾 package 中,或者如果在一個 workspace 中執行時,在 workspace 的所有 package 中檢查過期依賴。
--filter <package_selector>
--global, -g
列出過時的全域套件。
--long
列印詳細資訊。
--format <format>
Added in: v7.15.0
- 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.