Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NodeCommand

Hierarchy

Properties

Methods

Properties

args

args: string[] = Option.Proxy()

cwd

cwd: undefined | string = Option.String(`--cwd`, {hidden: true})

Static paths

paths: string[][] = [[`node`],]

Static usage

usage: Usage = Command.Usage({description: `run node with the hook already setup`,details: `This command simply runs Node. It also makes sure to call it in a way that's compatible with the current project (for example, on PnP projects the environment will be setup in such a way that PnP will be correctly injected into the environment).The Node process will use the exact same version of Node as the one used to run Yarn itself, which might be a good way to ensure that your commands always use a consistent Node version.`,examples: [[`Run a Node script`,`$0 node ./my-script.js`,]],})

Methods

execute

  • execute(): Promise<number>

Generated using TypeDoc