UNPKG

workspace-tools

Version:

A collection of utilities that are useful in a git-controlled monorepo managed by one of these tools:

11 lines (10 loc) 524 B
/** * Given package folder globs (such as those from package.json `workspaces`) and a workspace root * directory, get absolute paths to actual package folders. */ export declare function getPackagePaths(root: string, packageGlobs: string[]): string[]; /** * Given package folder globs (such as those from package.json `workspaces`) and a workspace root * directory, get absolute paths to actual package folders. */ export declare function getPackagePathsAsync(root: string, packageGlobs: string[]): Promise<string[]>;