Skip to main content

Project

Index

Constructors

constructor

Properties

readonlyroot

root: Path

Methods

createWorkspaceMetadata

  • Create a workspace metadata object composed of absolute file paths.

getPackage

  • getPackage<T>(): T

getWorkspaceGlobs

  • Return a list of all workspace globs as they are configured in package.json or lerna.json. Glob patterns will always use forward slashes, regardless of OS.

getWorkspacePackagePaths

  • Return a list of all workspace package paths, resolved against the file system. Absolute file paths are returned unless the relative option is true.

getWorkspacePackages

  • Return all package.jsons across all workspaces and their packages. Once loaded, append workspace path metadata.


    Type parameters

staticnormalizeGlob

  • normalizeGlob(pattern: string): string