Options
All
  • Public
  • Public/Protected
  • All
Menu

Package plugin-npm-cli

@yarnpkg/plugin-npm-cli

This plugin adds support for various npm-specific commands.

Install

This plugin is included by default in Yarn.

Commands

Type aliases

CombinedPackument

CombinedPackument: Omit<Packument, "versions"> & PackumentVersion

The combined type of Packument (without the versions field) and PackumentVersion

Functions

clean

  • clean(value: unknown): unknown

getCredentials

  • getCredentials(prompt: any, __namedParameters: object): Promise<object>

makePublishBody

  • makePublishBody(workspace: Workspace, buffer: Buffer, __namedParameters: object): Promise<object>

setAuthToken

  • setAuthToken(registry: string, npmAuthToken: string, __namedParameters: object): Promise<void>

validateRequiredInput

  • validateRequiredInput(input: string, message: string): string | true

Object literals

Const plugin

plugin: object

commands

commands: (InfoCommand | NpmLoginCommand | NpmPublishCommand)[] = [info,login,npmPublish,whoami,]

configuration

configuration: object

npmPublishAccess

npmPublishAccess: object

default

default: null = null

description

description: string = `Default access of the published packages`

type

type: STRING = SettingsType.STRING

Generated using TypeDoc