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