workspace-tools
Version:
A collection of utilities that are useful in a git-controlled monorepo managed by one of these tools:
16 lines (15 loc) • 721 B
TypeScript
import type { WorkspaceInfos } from "../../types/WorkspaceInfo";
/** Get paths for each package ("workspace") in a lerna monorepo. */
export declare function getWorkspacePackagePaths(cwd: string): string[];
/**
* Get an array with names, paths, and package.json contents for each package ("workspace")
* in a lerna monorepo.
*/
export declare function getLernaWorkspaces(cwd: string): WorkspaceInfos;
/**
* Get an array with names, paths, and package.json contents for each package ("workspace")
* in a lerna monorepo.
*/
export declare function getLernaWorkspacesAsync(cwd: string): Promise<WorkspaceInfos>;
export { getLernaWorkspaces as getWorkspaces };
export { getLernaWorkspacesAsync as getWorkspacesAsync };