UNPKG

@augment-vir/node

Version:

A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.

22 lines (21 loc) 990 B
/** * Finds all `package.json` files contained within the workspaces present in the current * `startDirPath`. A workspace root dir is found by recursively looking for a parent * `package-lock.json` file. * * @category Node : Npm * @category Package : @augment-vir/node * @throws If no directory with a `package-lock.json` file is found. * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node) */ export declare function findAllPackageJsonFilePaths(startDirPath: string): Promise<string[]>; /** * Get all workspace package.json paths starting at the given directory path. The output is string * sorted to keep it stable. * * @category Node : Npm * @category Package : @augment-vir/node * @throws Error if there is no `package.json` file at the given `rootDirPath`. * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node) */ export declare function getWorkspacePackageJsonFilePaths(rootDirPath: string): Promise<string[]>;