Options
All
  • Public
  • Public/Protected
  • All
Menu

Package plugin-compat

@yarnpkg/plugin-compat

This plugin contains various builtin patches that will be applied to packages that aren't compatible with the Plug'n'Play resolution out-of-the-box.

Install

This plugin is included by default in Yarn.

Compatibility Features

Variables

Const FILENAME

FILENAME: string = path.basename(__filename)

Const PATCHES

PATCHES: Map<string & object, getPatch> = new Map([[structUtils.makeIdent(null, `fsevents`).identHash, getFseventsPatch],[structUtils.makeIdent(null, `resolve`).identHash, getResolvePatch],[structUtils.makeIdent(null, `typescript`).identHash, getTypescriptPatch],])

Const TEST_RANGES

TEST_RANGES: Array<[]> = [[`fsevents`, [`^1`,`^2.1`,`latest`,],], [`resolve`, [`>=1.9`,`latest`,`next`,],], [`typescript`, [`>=3.2`,`latest`,`next`,],],]

Const TEST_TIMEOUT

TEST_TIMEOUT: 100000000 = 100000000

Let patch

patch: string

Let patch

patch: string

Let patch

patch: string

Const testedCandidates

testedCandidates: Set<LocatorHash> = new Set()

A Set used to keep track of the test candidates, so we only test each candidate once.

Functions

createProject

getConfiguration

getDescriptorCandidates

getPatch

  • getPatch(): string

getPatch

  • getPatch(): string

getPatch

  • getPatch(): string

testCandidate

  • testCandidate(locator: Locator): Promise<void>

Object literals

Const plugin

plugin: object

hooks

hooks: object

getBuiltinPatch

  • getBuiltinPatch(project: Project, name: string): Promise<undefined | null | string>

reduceDependency

registerPackageExtensions

  • registerPackageExtensions(configuration: Configuration, registerPackageExtension: function): Promise<void>

Generated using TypeDoc