Options
All
  • Public
  • Public/Protected
  • All
Menu

Package yarnpkg-pnpify

Type aliases

HoisterResult

HoisterResult: object

Type declaration

  • dependencies: Set<HoisterResult>
  • name: PackageName
  • references: Set<string>

HoisterTree

HoisterTree: object

Type declaration

  • dependencies: Set<HoisterTree>
  • name: PackageName
  • peerNames: Set<PackageName>
  • reference: string

NodeModulesBaseNode

NodeModulesBaseNode: object

Type declaration

NodeModulesBaseNode

NodeModulesBaseNode: object

Type declaration

NodeModulesFSOptions

NodeModulesFSOptions: object

Type declaration

  • Optional pnpifyFs?: undefined | false | true
  • Optional realFs?: typeof fs

NodeModulesLocatorMap

NodeModulesLocatorMap: Map<LocatorKey, object>

NodeModulesLocatorMap

NodeModulesLocatorMap: Map<LocatorKey, object>

NodeModulesPackageNode

NodeModulesPackageNode: object

Type declaration

  • aliases: string[]
  • Optional dirList?: undefined
  • linkType: LinkType
  • locator: LocatorKey
  • target: PortablePath

NodeModulesPackageNode

NodeModulesPackageNode: object

Type declaration

  • aliases: string[]
  • Optional dirList?: undefined
  • linkType: LinkType
  • locator: LocatorKey
  • target: PortablePath

NodeModulesTree

Node modules tree - a map of every folder within the node_modules, along with their directory listing and whether they are a symlink and their location.

Sample contents: /home/user/project/node_modules -> {dirList: ['foo', 'bar']} /home/user/project/node_modules/foo -> {target: '/home/user/project/.yarn/.cache/foo.zip/node_modules/foo', linkType: 'HARD'} /home/user/project/node_modules/bar -> {target: '/home/user/project/packages/bar', linkType: 'SOFT'}

Sample contents: /home/user/project/node_modules -> {dirList: ['foo', 'bar']} /home/user/project/node_modules/foo -> {target: '/home/user/project/.yarn/.cache/foo.zip/node_modules/foo', linkType: 'HARD'} /home/user/project/node_modules/bar -> {target: '/home/user/project/packages/bar', linkType: 'SOFT'}

Variables

Const dynamicRequire

dynamicRequire: any = typeof __non_webpack_require__ !== `undefined`? __non_webpack_require__: require

Functions

Const buildLocatorMap

Const buildLocatorMap

Const buildNodeModulesTree

Const buildNodeModulesTree

Const generateEslintWrapper

Const generatePrettierWrapper

Const generateSdk

  • generateSdk(pnpApi: PnpApi): Promise<any>

Const getArchivePath

Const getArchivePath

Const hoist

  • Hoists package tree.

    The root node of a tree must has id: '.'. This function does not mutate its arguments, it hoists and returns tree copy.

    The root node of a tree must has id: '.'. This function does not mutate its arguments, it hoists and returns tree copy.

    Parameters

    • tree: HoisterTree

      package tree (cycles in the tree are allowed)

    • Default value opts: HoistOptions = {}

    Returns HoisterResult

    hoisted tree copy

Const patchFs

  • patchFs(): void

Const resolveNodeModulesPath

Generated using TypeDoc