pnpm deprecate

Визначає повідомлення про застарілість для опублікованої версії пакунка. Користувачі, які запускають pnpm install, побачать це повідомлення, коли встановлюється відповідна версія.

pnpm deprecate <pkg>[@<version-range>] <message>

To clear a deprecation message, use pnpm undeprecate. An empty message fails with ERR_PNPM_DEPRECATE_MESSAGE_REQUIRED.

Приклади#

Позначити застарілою одну версію:

pnpm deprecate foo@1.0.0 "Use foo@2 instead"

Позначити застарілим діапазон версій:

pnpm deprecate "foo@<2" "Please upgrade to foo@2"

Позначити застарілими усі версії:

pnpm deprecate foo "This package is no longer maintained"

Параметри#

--registry <url>#

The registry to write the deprecation to. Defaults to the registry configured for the package.

--otp <code>#

When the registry requires two-factor authentication, supply the one-time password via this flag.

pnpm undeprecate#

Видалияє повідомлення про застарілість з версії пакунка.

pnpm undeprecate <pkg>[@<version-range>]