@expo/config 7.0.3 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Config.d.ts +1 -13
- package/build/Config.js +49 -369
- package/build/Config.js.map +1 -1
- package/build/Config.types.d.ts +18 -21
- package/build/Config.types.js +0 -5
- package/build/Config.types.js.map +1 -1
- package/build/Errors.js +3 -7
- package/build/Errors.js.map +1 -1
- package/build/Serialize.js +4 -24
- package/build/Serialize.js.map +1 -1
- package/build/evalConfig.d.ts +2 -2
- package/build/evalConfig.js +12 -44
- package/build/evalConfig.js.map +1 -1
- package/build/getAccountUsername.d.ts +9 -0
- package/build/{getFullName.js → getAccountUsername.js} +8 -21
- package/build/getAccountUsername.js.map +1 -0
- package/build/getConfig.js +2 -23
- package/build/getConfig.js.map +1 -1
- package/build/getExpoSDKVersion.d.ts +6 -0
- package/build/getExpoSDKVersion.js +60 -0
- package/build/getExpoSDKVersion.js.map +1 -0
- package/build/getUserState.d.ts +3 -3
- package/build/getUserState.js +0 -20
- package/build/getUserState.js.map +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.js +8 -19
- package/build/index.js.map +1 -1
- package/build/paths/extensions.d.ts +1 -2
- package/build/paths/extensions.js +8 -35
- package/build/paths/extensions.js.map +1 -1
- package/build/paths/index.js +0 -4
- package/build/paths/index.js.map +1 -1
- package/build/paths/paths.js +37 -67
- package/build/paths/paths.js.map +1 -1
- package/build/plugins/withConfigPlugins.js +2 -13
- package/build/plugins/withConfigPlugins.js.map +1 -1
- package/build/plugins/withInternal.js +1 -8
- package/build/plugins/withInternal.js.map +1 -1
- package/build/resolvePackageJson.js +1 -21
- package/build/resolvePackageJson.js.map +1 -1
- package/package.json +5 -5
- package/build/Project.d.ts +0 -2
- package/build/Project.js +0 -64
- package/build/Project.js.map +0 -1
- package/build/getFullName.d.ts +0 -10
- package/build/getFullName.js.map +0 -1
- package/build/isLegacyImportsEnabled.d.ts +0 -7
- package/build/isLegacyImportsEnabled.js +0 -61
- package/build/isLegacyImportsEnabled.js.map +0 -1
package/build/Config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppJSONConfig, ConfigFilePaths, ExpoConfig,
|
|
1
|
+
import { AppJSONConfig, ConfigFilePaths, ExpoConfig, GetConfigOptions, PackageJSONConfig, ProjectConfig, ProjectTarget, WriteConfigOptions } from './Config.types';
|
|
2
2
|
/**
|
|
3
3
|
* Evaluate the config for an Expo project.
|
|
4
4
|
* If a function is exported from the `app.config.js` then a partial config will be passed as an argument.
|
|
@@ -27,22 +27,12 @@ import { AppJSONConfig, ConfigFilePaths, ExpoConfig, ExpRc, GetConfigOptions, Pa
|
|
|
27
27
|
*/
|
|
28
28
|
export declare function getConfig(projectRoot: string, options?: GetConfigOptions): ProjectConfig;
|
|
29
29
|
export declare function getPackageJson(projectRoot: string): PackageJSONConfig;
|
|
30
|
-
export declare function readConfigJson(projectRoot: string, skipValidation?: boolean, skipSDKVersionRequirement?: boolean): ProjectConfig;
|
|
31
30
|
/**
|
|
32
31
|
* Get the static and dynamic config paths for a project. Also accounts for custom paths.
|
|
33
32
|
*
|
|
34
33
|
* @param projectRoot
|
|
35
34
|
*/
|
|
36
35
|
export declare function getConfigFilePaths(projectRoot: string): ConfigFilePaths;
|
|
37
|
-
export declare function findConfigFile(projectRoot: string): {
|
|
38
|
-
configPath: string;
|
|
39
|
-
configName: string;
|
|
40
|
-
configNamespace: 'expo';
|
|
41
|
-
};
|
|
42
|
-
export declare function configFilename(projectRoot: string): string;
|
|
43
|
-
export declare function readExpRcAsync(projectRoot: string): Promise<ExpRc>;
|
|
44
|
-
export declare function resetCustomConfigPaths(): void;
|
|
45
|
-
export declare function setCustomConfigPath(projectRoot: string, configPath: string): void;
|
|
46
36
|
/**
|
|
47
37
|
* Attempt to modify an Expo project config.
|
|
48
38
|
* This will only fully work if the project is using static configs only.
|
|
@@ -59,7 +49,6 @@ export declare function modifyConfigAsync(projectRoot: string, modifications: Pa
|
|
|
59
49
|
message?: string;
|
|
60
50
|
config: AppJSONConfig | null;
|
|
61
51
|
}>;
|
|
62
|
-
export declare function writeConfigJsonAsync(projectRoot: string, options: object): Promise<ProjectConfig>;
|
|
63
52
|
export declare function getWebOutputPath(config?: {
|
|
64
53
|
[key: string]: any;
|
|
65
54
|
}): string;
|
|
@@ -85,4 +74,3 @@ export declare function getProjectConfigDescription(projectRoot: string): string
|
|
|
85
74
|
*/
|
|
86
75
|
export declare function getProjectConfigDescriptionWithPaths(projectRoot: string, projectConfig: ConfigFilePaths): string;
|
|
87
76
|
export * from './Config.types';
|
|
88
|
-
export { isLegacyImportsEnabled } from './isLegacyImportsEnabled';
|