UNPKG

1.27 kBTypeScriptView Raw
1import { RunOptions } from './types/common';
2import { Output } from './Output/index';
3export declare class Config {
4 /**
5 * Local settings
6 */
7 out: Output;
8 debug: boolean;
9 windows: boolean;
10 bin: string;
11 mock: boolean;
12 argv: string[];
13 commandsDir: string;
14 defaultCommand: string;
15 userPlugins: boolean;
16 version: string;
17 name: string;
18 pjson: any;
19 /**
20 * Paths
21 */
22 cwd: string;
23 home: string;
24 root: string;
25 definitionDir: string;
26 definitionPath: string | null;
27 globalGraphcoolPath: string;
28 globalConfigPath: string;
29 globalClusterCachePath: string;
30 warnings: string[];
31 /**
32 * Urls
33 */
34 statusEndpoint: string;
35 cloudApiEndpoint: string;
36 consoleEndpoint: string;
37 __cache: {};
38 constructor(options?: RunOptions);
39 setOutput(out: Output): void;
40 readonly arch: string;
41 readonly platform: string;
42 readonly userAgent: string;
43 readonly dirname: any;
44 readonly cacheDir: string;
45 readonly requireCachePath: string;
46 readonly requestsCachePath: string;
47 private readPackageJson(options);
48 private setPaths();
49 private warn(msg);
50 private setDefinitionPaths();
51 private getCwd();
52 private getHome();
53}