UNPKG

@node-kit/yarn-workspace-root

Version:
23 lines (19 loc) 532 B
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 { }