UNPKG

@pnpm/workspace.read-manifest

Version:
18 lines (17 loc) 740 B
import { type PnpmSettings } from '@pnpm/types'; import { type WorkspaceCatalog, type WorkspaceNamedCatalogs } from './catalogs'; export interface WorkspaceManifest extends PnpmSettings { packages: string[]; /** * The default catalog. Package manifests may refer to dependencies in this * definition through the `catalog:default` specifier or the `catalog:` * shorthand. */ catalog?: WorkspaceCatalog; /** * A dictionary of named catalogs. Package manifests may refer to dependencies * in this definition through the `catalog:<name>` specifier. */ catalogs?: WorkspaceNamedCatalogs; } export declare function readWorkspaceManifest(dir: string): Promise<WorkspaceManifest | undefined>;