Options
All
  • Public
  • Public/Protected
  • All
Menu

Package yarnpkg-pnp

Type aliases

ApiMetadata

ApiMetadata: object

Type declaration

  • cache:
  • instance: PnpApi
  • stats: Stats

ApplyPatchOptions

ApplyPatchOptions: object

Type declaration

DependencyTarget

DependencyTarget: string | [string, string] | null

DependencyTarget

DependencyTarget: string | [string, string] | null

DependencyTarget

DependencyTarget: string | [string, string] | null

HydrateRuntimeStateOptions

HydrateRuntimeStateOptions: object

Type declaration

  • basePath: string

LocationBlacklistData

LocationBlacklistData: Array<PortablePath>

LocationBlacklistData

LocationBlacklistData: Array<PortablePath>

LocationBlacklistData

LocationBlacklistData: Array<PortablePath>

LocationLengthData

LocationLengthData: Array<number>

LocationLengthData

LocationLengthData: Array<number>

LocationLengthData

LocationLengthData: Array<number>

MakeApiOptions

MakeApiOptions: object

Type declaration

  • Optional allowDebug?: undefined | false | true
  • Optional compatibilityMode?: undefined | false | true
  • fakeFs: FakeFS<PortablePath>
  • pnpapiResolution: NativePath

MakeManagerOptions

MakeManagerOptions: object

Type declaration

Manager

Manager: ReturnType<typeof makeManager>

PackageInformation

PackageInformation<P>: object

Type parameters

Type declaration

  • discardFromLookup: boolean
  • linkType: LinkType
  • packageDependencies: Map<string, DependencyTarget>
  • packageLocation: P
  • packagePeers: Set<string>

PackageInformation

PackageInformation<P>: object

Type parameters

Type declaration

  • discardFromLookup: boolean
  • linkType: LinkType
  • packageDependencies: Map<string, DependencyTarget>
  • packageLocation: P
  • packagePeers: Set<string>

PackageInformation

PackageInformation<P>: object

Type parameters

Type declaration

  • discardFromLookup: boolean
  • linkType: LinkType
  • packageDependencies: Map<string, DependencyTarget>
  • packageLocation: P
  • packagePeers: Set<string>

PackageInformationData

PackageInformationData<P>: object

Type parameters

Type declaration

  • Optional discardFromLookup?: undefined | false | true
  • linkType: LinkType
  • packageDependencies: Array<[string, DependencyTarget]>
  • packageLocation: P
  • Optional packagePeers?: Array<string>

PackageInformationData

PackageInformationData<P>: object

Type parameters

Type declaration

  • Optional discardFromLookup?: undefined | false | true
  • linkType: LinkType
  • packageDependencies: Array<[string, DependencyTarget]>
  • packageLocation: P
  • Optional packagePeers?: Array<string>

PackageInformationData

PackageInformationData<P>: object

Type parameters

Type declaration

  • Optional discardFromLookup?: undefined | false | true
  • linkType: LinkType
  • packageDependencies: Array<[string, DependencyTarget]>
  • packageLocation: P
  • Optional packagePeers?: Array<string>

PackageLocator

PackageLocator

PackageLocator

PackageRegistry

PackageRegistry: Map<string | null, PackageStore>

PackageRegistry

PackageRegistry: Map<string | null, PackageStore>

PackageRegistry

PackageRegistry: Map<string | null, PackageStore>

PackageRegistryData

PackageRegistryData: Array<[string | null, PackageStoreData]>

PackageRegistryData

PackageRegistryData: Array<[string | null, PackageStoreData]>

PackageRegistryData

PackageRegistryData: Array<[string | null, PackageStoreData]>

PackageStore

PackageStore: Map<string | null, PackageInformation<PortablePath>>

PackageStore

PackageStore: Map<string | null, PackageInformation<PortablePath>>

PackageStore

PackageStore: Map<string | null, PackageInformation<PortablePath>>

PackageStoreData

PackageStoreData: Array<[string | null, PackageInformationData<PortablePath>]>

PackageStoreData

PackageStoreData: Array<[string | null, PackageInformationData<PortablePath>]>

PackageStoreData

PackageStoreData: Array<[string | null, PackageInformationData<PortablePath>]>

PhysicalPackageLocator

PhysicalPackageLocator: object

Type declaration

  • name: string
  • reference: string

PhysicalPackageLocator

PhysicalPackageLocator: object

Type declaration

  • name: string
  • reference: string

PhysicalPackageLocator

PhysicalPackageLocator: object

Type declaration

  • name: string
  • reference: string

PnpApi

PnpApi: object

Type declaration

PnpApi

PnpApi: object

Type declaration

PnpApi

PnpApi: object

Type declaration

PnpSettings

PnpSettings: object

Type declaration

PnpSettings

PnpSettings: object

Type declaration

PnpSettings

PnpSettings: object

Type declaration

ResolveRequestOptions

ResolveToUnqualifiedOptions

ResolveToUnqualifiedOptions: object

Type declaration

  • Optional considerBuiltins?: undefined | false | true

ResolveUnqualifiedOptions

ResolveUnqualifiedOptions: object

Type declaration

  • Optional extensions?: Array<string>

RuntimeState

RuntimeState: object

Type declaration

RuntimeState

RuntimeState: object

Type declaration

RuntimeState

RuntimeState: object

Type declaration

SerializedState

SerializedState: object

Type declaration

SerializedState

SerializedState: object

Type declaration

SerializedState

SerializedState: object

Type declaration

TopLevelPackageLocator

TopLevelPackageLocator: object

Type declaration

  • name: null
  • reference: null

TopLevelPackageLocator

TopLevelPackageLocator: object

Type declaration

  • name: null
  • reference: null

TopLevelPackageLocator

TopLevelPackageLocator: object

Type declaration

  • name: null
  • reference: null

Variables

Const defaultApi

defaultApi: object & object = Object.assign(makeApi(defaultRuntimeState, {fakeFs: defaultFsLayer,pnpapiResolution: defaultPnpapiResolution,}), {/*** Can be used to generate a different API than the default one (for example* to map it on `/` rather than the local directory path, or to use a* different FS layer than the default one).*/makeApi: ({basePath = undefined,fakeFs = defaultFsLayer,pnpapiResolution = defaultPnpapiResolution,...rest}: Partial<MakeApiOptions> & {basePath?: NativePath}) => {const apiRuntimeState = typeof basePath !== `undefined`? $$SETUP_STATE(hydrateRuntimeState, basePath): defaultRuntimeState;return makeApi(apiRuntimeState, {fakeFs,pnpapiResolution,...rest,});},/*** Will inject the specified API into the environment, monkey-patching FS. Is* automatically called when the hook is loaded through `--require`.*/setup: (api?: PnpApi) => {applyPatch(api || defaultApi, {fakeFs: defaultFsLayer,manager,});},})

Functions

applyPatch

generateInlinedScript

generateInlinedScript

generatePrettyJson

  • generatePrettyJson(data: any): string

generateSerializedState

generateSplitScript

  • generateSplitScript(settings: PnpSettings & object): object

generateSplitScript

  • generateSplitScript(settings: PnpSettings & object): object

getIssuerModule

  • getIssuerModule(parent: NodeModule | null | undefined): NodeModule | null

hydratePnpFile

  • hydratePnpFile(location: string, __namedParameters: object): Promise<object>

hydratePnpFile

  • hydratePnpFile(location: string, __namedParameters: object): Promise<object>

hydratePnpFile

  • hydratePnpFile(location: string, __namedParameters: object): Promise<object>

hydratePnpSource

  • hydratePnpSource(source: string, __namedParameters: object): object

hydratePnpSource

  • hydratePnpSource(source: string, __namedParameters: object): object

hydratePnpSource

  • hydratePnpSource(source: string, __namedParameters: object): object

hydrateRuntimeState

makeApi

makeError

  • makeError(pnpCode: ErrorCode, message: string, data?: Object): Error

makeManager

Const makeRuntimeApi

Const makeRuntimeApi

sortMap

  • sortMap<T>(values: Iterable<T>, mappers: function | Array<function>): T[]

Generated using TypeDoc