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 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<[string, Array<string>]> = [[`fsevents`, [`^1`,`^2.1`,`latest`,],], [`resolve`, [`>=1.9`,`latest`,`next`,],], [`typescript`, [`>=3.2`,`latest`,`next`,],],]

Const TEST_TIMEOUT

TEST_TIMEOUT: 100000000 = 100000000

Const packageExtensions

packageExtensions: Array<[string, any]> = [// https://github.com/SamVerschueren/stream-to-observable/pull/5[`@samverschueren/stream-to-observable@*`, {peerDependenciesMeta: {[`rxjs`]: optionalPeerDep,[`zenObservable`]: optionalPeerDep,},}],// https://github.com/sindresorhus/any-observable/pull/25[`any-observable@<0.5.1`, {peerDependenciesMeta: {[`rxjs`]: optionalPeerDep,[`zenObservable`]: optionalPeerDep,},}],// https://github.com/keymetrics/pm2-io-agent/pull/125[`@pm2/agent@<1.0.4`, {dependencies: {[`debug`]: `*`,},}],// https://github.com/visionmedia/debug/pull/727[`debug@*`, {peerDependenciesMeta: {[`supports-color`]: optionalPeerDep,},}],// https://github.com/sindresorhus/got/pull/1125[`got@<11`, {dependencies: {[`@types/responselike`]: `^1.0.0`,[`@types/keyv`]: `^3.1.1`,},}],// https://github.com/szmarczak/cacheable-lookup/pull/12[`cacheable-lookup@<4.1.2`, {dependencies: {[`@types/keyv`]: `^3.1.1`,},}],// https://github.com/prisma-labs/http-link-dataloader/pull/22[`http-link-dataloader@*`, {peerDependencies: {[`graphql`]: `^0.13.1 || ^14.0.0`,},}],// https://github.com/theia-ide/typescript-language-server/issues/144[`typescript-language-server@*`, {dependencies: {[`vscode-jsonrpc`]: `^5.0.1`,[`vscode-languageserver-protocol`]: `^3.15.0`,},}],// https://github.com/gucong3000/postcss-syntax/pull/46[`postcss-syntax@*`, {peerDependenciesMeta: {[`postcss-html`]: optionalPeerDep,[`postcss-jsx`]: optionalPeerDep,[`postcss-less`]: optionalPeerDep,[`postcss-markdown`]: optionalPeerDep,[`postcss-scss`]: optionalPeerDep,},}],// https://github.com/cssinjs/jss/pull/1315[`jss-plugin-rule-value-function@<=10.1.1`, {dependencies: {[`tiny-warning`]: `^1.0.2`,},}],// https://github.com/vadimdemedes/ink-select-input/pull/26[`ink-select-input@*`, {peerDependencies: {react: `^16.8.2`,},}],// https://github.com/iarna/promise-inflight/pull/4[`promise-inflight@*`, {peerDependenciesMeta: {[`bluebird`]: optionalPeerDep,},}],]

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 optionalPeerDep

optionalPeerDep: object

optional

optional: boolean = true

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