Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RunCommand<Context>

Type parameters

  • Context: BaseContext

Hierarchy

  • Command
    • RunCommand

Properties

Methods

Properties

args

args: string[] = Option.Proxy()

commandName

commandName: string = Option.String()

cwd

cwd: string = Option.String(`--cwd`, process.cwd(), {description: `The directory to run the command in`,})

Static paths

paths: string[][] = [[`run`],Command.Default,]

Static usage

usage: object = Command.Usage({description: `run a command with a virtual node_modules folder`,details: `When a non-PnP-compliant project tries to access the \`node_modules\` directories (for example through \`readdir\` or \`readFile\`), PnPify intercepts those calls and converts them into calls to the PnP API. Then, based on the result, it simulates the existence of a virtual \`node_modules\` folder that the underlying tool will then consume - still unaware that the files are extracted from a virtual filesystem.The \`run\` keyword can be omitted if the executed command doesn't conflict with built-in commands.For more details on PnPify, please consult the dedicated page from our website: https://yarnpkg.com/advanced/pnpify.`,examples: [[`Run Angular using PnPify`,`$0 ng build`,]],})

Type declaration

Methods

execute

  • execute(): Promise<number>

Generated using TypeDoc