@node-kit/yarn-workspace-root
Version:
A simple utility to get the yarn workspace root
23 lines (19 loc) • 532 B
TypeScript
export declare type Manifest = (Record<string, unknown> & {
packages: any;
workspaces: any;
}) | null;
/**
* get yarn workspace root dir
*
* @param cwd - work dir
* @returns result - workspace root dir
*/
export declare function yarnWorkspaceRoot(cwd?: string): Promise<string | null>;
/**
* get yarn workspace root dir sync function
*
* @param cwd - work dir
* @returns result - workspace root dir
*/
export declare function yarnWorkspaceRootSync(cwd?: string): string | null;
export { }