@verdaccio/yarn-plugin-npm-deprecate
v0.0.8
Published
Yarn 4 plugin that adds the yarn npm deprecate command
Keywords
Readme
@verdaccio/yarn-plugin-npm-deprecate
Yarn 4 plugin that adds the yarn npm deprecate command to deprecate (or un-deprecate) package versions on npm registries.
Installation
yarn dlx @verdaccio/yarn-import npm-deprecateOr from a local build:
yarn plugin import ./packages/plugin-npm-deprecate/bundles/@yarnpkg/plugin-npm-deprecate.jsUsage
# Deprecate a specific version
yarn npm deprecate [email protected] "Use v2 instead"
# Deprecate a version range
yarn npm deprecate my-package@"<2.0.0" "Upgrade to v2"
# Deprecate a scoped package
yarn npm deprecate @my-scope/[email protected] "No longer maintained"
# Un-deprecate a version (pass an empty message)
yarn npm deprecate [email protected] ""
# With OTP for two-factor authentication
yarn npm deprecate [email protected] "Use v2 instead" --otp 123456Options
| Option | Description |
|---|---|
| --otp <code> | One-time password for two-factor authentication |
| --registry <url> | Override the registry URL |
| --scope <scope> | Use the registry configured for the given scope |
| --json | Format the output as NDJSON |
Positional arguments
| Argument | Description |
|---|---|
| package | Package name with optional version range (e.g. [email protected], my-package@"<2") |
| message | Deprecation message, or "" to un-deprecate |
License
MIT
