@node-kit/lerna-workspace-info
Version:
A simple utility to get the lerna workspace information
26 lines (21 loc) • 637 B
TypeScript
/**
* get lerna workspace information sync function
*
* @param cwd - work dir
* @returns result - workspace root dir
*/
export declare function lernaWorkspaceInfo(cwd?: string): Promise<WorkspaceInfo | null>;
/**
* get lerna workspace information sync function
*
* @param cwd - work dir
* @returns result - workspace root dir
*/
export declare function lernaWorkspaceInfoSync(cwd?: string): WorkspaceInfo | null;
export declare type ManifestInfo = {
packages: string | string[];
} & Record<string, unknown>;
export declare type WorkspaceInfo = Record<string, {
path: string;
}>;
export { }