1 | import { ConfigFilePaths, ExpRc, ExpoConfig, GetConfigOptions, PackageJSONConfig, ProjectConfig, ProjectTarget, WriteConfigOptions } from './Config.types';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare function getConfig(projectRoot: string, options?: GetConfigOptions): ProjectConfig;
|
26 | export declare function getPackageJson(projectRoot: string, config?: Pick<ExpoConfig, 'nodeModulesPath'>): PackageJSONConfig;
|
27 | export declare function readConfigJson(projectRoot: string, skipValidation?: boolean, skipNativeValidation?: boolean): ProjectConfig;
|
28 | export declare function readConfigJsonAsync(projectRoot: string, skipValidation?: boolean, skipNativeValidation?: boolean): Promise<ProjectConfig>;
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | export declare function getConfigFilePaths(projectRoot: string): ConfigFilePaths;
|
35 | export declare function findConfigFile(projectRoot: string): {
|
36 | configPath: string;
|
37 | configName: string;
|
38 | configNamespace: 'expo';
|
39 | };
|
40 | export declare function configFilename(projectRoot: string): string;
|
41 | export declare function readExpRcAsync(projectRoot: string): Promise<ExpRc>;
|
42 | export declare function setCustomConfigPath(projectRoot: string, configPath: string): void;
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 | export declare function modifyConfigAsync(projectRoot: string, modifications: Partial<ExpoConfig>, readOptions?: GetConfigOptions, writeOptions?: WriteConfigOptions): Promise<{
|
55 | type: 'success' | 'warn' | 'fail';
|
56 | message?: string;
|
57 | config: ExpoConfig | null;
|
58 | }>;
|
59 | export declare function writeConfigJsonAsync(projectRoot: string, options: Object): Promise<ProjectConfig>;
|
60 | export declare function getWebOutputPath(config?: {
|
61 | [key: string]: any;
|
62 | }): string;
|
63 | export declare function getNameFromConfig(exp?: ExpoConfig): {
|
64 | appName: string;
|
65 | webName: string;
|
66 | };
|
67 | export declare function getDefaultTarget(projectRoot: string): ProjectTarget;
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 | export declare function getProjectConfigDescription(projectRoot: string, projectConfig: ProjectConfig): string | null;
|
76 | export * from './Config.types';
|