UNPKG

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) 865 B
import type { WorkspaceInfos } from "../../types/WorkspaceInfo"; /** Get paths for each package ("workspace") in an npm monorepo. */ export declare function getWorkspacePackagePaths(cwd: string): string[]; /** Get paths for each package ("workspace") in an npm monorepo. */ export declare function getWorkspacePackagePathsAsync(cwd: string): Promise<string[]>; /** * Get an array with names, paths, and package.json contents for each package ("workspace") * in an npm monorepo. */ export declare function getNpmWorkspaces(cwd: string): WorkspaceInfos; /** * Get an array with names, paths, and package.json contents for each package ("workspace") * in an npm monorepo. */ export declare function getNpmWorkspacesAsync(cwd: string): Promise<WorkspaceInfos>; export { getNpmWorkspaces as getWorkspaces }; export { getNpmWorkspacesAsync as getWorkspacesAsync };