Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LinkCommand

Hierarchy

Properties

all

all: boolean = Option.Boolean(`-A,--all`, false, {description: `Link all workspaces belonging to the target project to the current one`,})

cwd

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

destination

destination: string = Option.String()

private

private: boolean = Option.Boolean(`-p,--private`, false, {description: `Also link private workspaces belonging to the target project to the current one`,})

relative

relative: boolean = Option.Boolean(`-r,--relative`, false, {description: `Link workspaces using relative paths instead of absolute paths`,})

Static paths

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

Static usage

usage: Usage = Command.Usage({description: `connect the local project to another one`,details: `This command will set a new \`resolutions\` field in the project-level manifest and point it to the workspace at the specified location (even if part of another project).`,examples: [[`Register a remote workspace for use in the current project`,`$0 link ~/ts-loader`,], [`Register all workspaces from a remote project for use in the current project`,`$0 link ~/jest --all`,]],})

Methods

execute

  • execute(): Promise<0 | 1>

Generated using TypeDoc