Options
All
  • Public
  • Public/Protected
  • All
Menu

Package plugin-interactive-tools

@yarnpkg/plugin-interactive-tools

This plugin adds support for various interactive commands.

Install

This plugin is included by default starting from Yarn 4.

Commands

Type aliases

UpgradeSuggestion

UpgradeSuggestion: object

Type declaration

  • label: string
  • value: string | null

UpgradeSuggestions

UpgradeSuggestions: Array<UpgradeSuggestion>

Variables

Const SIMPLE_SEMVER

SIMPLE_SEMVER: RegExp = /^((?:[\^~]|>=?)?)([0-9]+)(\.[0-9]+)(\.[0-9]+)((?:-\S+)?)$/

Const TARGETS

TARGETS: string[] = [`regular`, `dev`, `peer`]

Const client

client: object & object = algoliasearch(algolia.appId, algolia.apiKey).initIndex(algolia.indexName,)

Functions

Const partition

  • partition<T>(array: Array<T>, size: number): Array<Array<T>>

Const search

  • search(query: string, page?: number): Promise<object>

Object literals

Const algolia

algolia: object

apiKey

apiKey: string = `6fe4476ee5a1832882e326b506d14126`

appId

appId: string = `OFCNCOG2CU`

indexName

indexName: string = `npm-search`

Const plugin

plugin: object

commands

commands: SearchCommand[] = [SearchCommand,UpgradeInteractiveCommand,]

Generated using TypeDoc