Skip to main content

Workspace

Index

Constructors

constructor

Properties

publicreadonlyanchoredDescriptor

anchoredDescriptor: Descriptor

publicreadonlyanchoredLocator

anchoredLocator: Locator

publicreadonlycwd

publicmanifest

manifest: Manifest

publicreadonlyproject

project: Project

publicreadonlyrelativeCwd

relativeCwd: PortablePath

publicreadonlyworkspacesCwds

workspacesCwds: Set<PortablePath> = ...

Accessors

anchoredPackage

Methods

accepts

  • accepts(range: string): boolean
  • Parameters

    • range: string

    Returns boolean

computeCandidateName

  • computeCandidateName(): string
  • Returns string

getRecursiveWorkspaceChildren

  • Retrieves all the child workspaces of a given root workspace recursively


    Returns Workspace[]

    all the child workspaces

getRecursiveWorkspaceDependencies

  • Find workspaces marked as dependencies/devDependencies of the current workspace recursively.


    Parameters

    Returns Set<Workspace>

    all the workspaces marked as dependencies

getRecursiveWorkspaceDependents

  • Find workspaces which include the current workspace as a dependency/devDependency recursively.


    Parameters

    Returns Set<Workspace>

    all the workspaces marked as dependents

persistManifest

  • persistManifest(): Promise<void>
  • Returns Promise<void>

setup

  • setup(): Promise<void>
  • Returns Promise<void>