Options
All
  • Public
  • Public/Protected
  • All
Menu

Package yarnpkg-pnpify

@yarnpkg/pnpify

A CLI tool designed for running commands with a virtual node_modules folder.

Documentation

Installation

yarn add -D @yarnpkg/pnpify

Commands

  • pnpify run - Run a command with a virtual node_modules folder.

Type aliases

DirectoryWatcherMap

DirectoryWatcherMap: Map<PortablePath, DirectoryWatcher>

NodeModulesFSOptions

NodeModulesFSOptions: object

Type declaration

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

Variables

Const NODE_MODULES

NODE_MODULES: "node_modules" = `node_modules`

Const WRITE_FLAGS_REGEX

WRITE_FLAGS_REGEX: RegExp = /[+wa]/

Const cli

cli: Cli<object> = new Cli({binaryLabel: `Yarn PnPify`,binaryName: `pnpify`,binaryVersion: require(`@yarnpkg/pnpify/package.json`).version,})

Const dynamicRequire

dynamicRequire: NodeRequire = eval(`require`)

Let fsPatched

fsPatched: boolean = false

Let pnp

pnp: PnpApi

Functions

dynamicRequireNoCache

Const patchFs

  • patchFs(): void

Const resolveNodeModulesPath

Generated using TypeDoc