UNPKG

workspace-tools

Version:

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

18 lines (17 loc) 821 B
import type { WorkspaceInfos } from "../../types/WorkspaceInfo"; /** @deprecated Use getWorkspaceRoot */ export declare function getRushWorkspaceRoot(cwd: string): string; /** Get paths for each package ("workspace") in a rush monorepo. */ export declare function getWorkspacePackagePaths(cwd: string): string[]; /** * Get an array with names, paths, and package.json contents for each package ("workspace") * in a rush monorepo. */ export declare function getRushWorkspaces(cwd: string): WorkspaceInfos; /** * Get an array with names, paths, and package.json contents for each package ("workspace") * in a rush monorepo. */ export declare function getRushWorkspacesAsync(cwd: string): Promise<WorkspaceInfos>; export { getRushWorkspaces as getWorkspaces }; export { getRushWorkspacesAsync as getWorkspacesAsync };