1 | import { PortablePath } from '@yarnpkg/fslib';
|
2 | import { Manifest } from './Manifest';
|
3 | import { Project } from './Project';
|
4 | import { IdentHash } from './types';
|
5 | import { Descriptor, Locator } from './types';
|
6 | export 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 | }
|