monorepo-root
Version:
A simple utility to get the monorepo root
18 lines (15 loc) • 374 B
TypeScript
/**
* monorepoRoot
*
* @param cwd - the pkg path
* @returns result - Promise\<string | null\>
*/
export declare function monorepoRoot(cwd?: string): Promise<string | null>;
/**
* monorepoRootSync
*
* @param cwd - the pkg path
* @returns result - string | null
*/
export declare function monorepoRootSync(cwd?: string): string | null;
export { }