workspace-tools
Version:
A collection of utilities that are useful in a git-controlled monorepo managed by one of these tools:
18 lines (17 loc) • 736 B
TypeScript
import { PackageInfos } from "./types/PackageInfo";
/**
* Read all the package.json files in a monorepo. Only works for monorepos which
* use a supported workspace manager.
* @param cwd Start looking for the workspace manager config from here
*/
export declare function getPackageInfos(cwd: string): PackageInfos;
/**
* Read all the package.json files in a monorepo. Only works for monorepos which
* use a supported workspace manager.
*
* NOTE: As of writing, this will start promises to read all package.json files in parallel,
* without direct concurrency control.
*
* @param cwd Start looking for the workspace manager config from here
*/
export declare function getPackageInfosAsync(cwd: string): Promise<PackageInfos>;