@typescript-tools/lerna-packages
Version:
Discover internal packages
19 lines • 651 B
TypeScript
/**
* lerna-packages
* Discover internal packages
*/
import { LernaPackage } from '@typescript-tools/io-ts';
import { MonorepoRootError } from '@typescript-tools/monorepo-root';
import * as TE from 'fp-ts/TaskEither';
export declare type PackageDiscoveryError = MonorepoRootError | {
type: 'unable to discover internal packages';
error: unknown;
} | {
type: 'unable to decode list of packages';
error: string;
};
/**
* Search the monorepo and enumerate all internal packages.
*/
export declare function lernaPackages(findRootFrom?: string): TE.TaskEither<PackageDiscoveryError, LernaPackage[]>;
//# sourceMappingURL=index.d.ts.map