Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WorkspaceCommand

Hierarchy

Properties

args

args: string[] = Option.Proxy()

commandName

commandName: string = Option.String()

cwd

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

workspaceName

workspaceName: string = Option.String()

Static paths

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

Static usage

usage: Usage = Command.Usage({category: `Workspace-related commands`,description: `run a command within the specified workspace`,details: `This command will run a given sub-command on a single workspace.`,examples: [[`Add a package to a single workspace`,`yarn workspace components add -D react`,], [`Run build script on a single workspace`,`yarn workspace components run build`,]],})

Methods

execute

  • execute(): Promise<number>

Generated using TypeDoc