UNPKG

819 BTypeScriptView Raw
1import { PortablePath } from '@yarnpkg/fslib';
2import { Manifest } from './Manifest';
3import { Project } from './Project';
4import { IdentHash } from './types';
5import { Descriptor, Locator } from './types';
6export declare class Workspace {
7 readonly project: Project;
8 readonly cwd: PortablePath;
9 readonly relativeCwd: PortablePath;
10 readonly anchoredDescriptor: Descriptor;
11 readonly anchoredLocator: Locator;
12 readonly locator: Locator;
13 readonly manifest: Manifest;
14 readonly workspacesCwds: Set<PortablePath>;
15 dependencies: Map<IdentHash, Descriptor>;
16 constructor(workspaceCwd: PortablePath, { project }: {
17 project: Project;
18 });
19 setup(): Promise<void>;
20 accepts(range: string): boolean;
21 computeCandidateName(): string;
22 persistManifest(): Promise<void>;
23}