@node-kit/pnpm-workspace-root
Version:
A simple utility to get the pnpm workspace root
18 lines (15 loc) • 429 B
TypeScript
/**
* get pnpm workspace root dir sync function
*
* @param cwd - work dir
* @returns result - workspace root dir
*/
export declare function pnpmWorkspaceRoot(cwd?: string): Promise<string | null>;
/**
* get pnpm workspace root dir sync function
*
* @param cwd - work dir
* @returns result - workspace root dir
*/
export declare function pnpmWorkspaceRootSync(cwd?: string): string | null;
export { }