workspace-tools
Version:
A collection of utilities that are useful in a git-controlled monorepo managed by one of these tools:
10 lines (9 loc) • 490 B
TypeScript
import type { Catalogs } from "../types/Catalogs";
/**
* Get version catalogs, if supported by the manager (only pnpm and yarn v4 as of writing).
* Returns undefined if no catalogs are present or the manager doesn't support them.
* @see https://pnpm.io/catalogs
* @see https://yarnpkg.com/features/catalogs
* @param cwd - Current working directory. It will search up from here to find the root, with caching.
*/
export declare function getCatalogs(cwd: string): Catalogs | undefined;