install-expo-modules 0.2.8 → 0.3.2

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.
@@ -1,8 +1,9 @@
1
- interface VersionInfo {
1
+ export interface VersionInfo {
2
+ expoSdkVersion: string;
2
3
  iosDeploymentTarget: string;
4
+ reactNativeVersionRange: string;
3
5
  }
4
- export declare const ExpoVersionMappings: Record<string, VersionInfo>;
5
- export declare function getDefaultVersion(): string;
6
- export declare function isSupportedVersion(version: string): boolean;
7
- export declare function getIosDeploymentTarget(version: string): string;
8
- export {};
6
+ export declare const ExpoVersionMappings: VersionInfo[];
7
+ export declare function getDefaultSdkVersion(projectRoot: string): VersionInfo;
8
+ export declare function getLatestSdkVersion(): VersionInfo;
9
+ export declare function getVersionInfo(sdkVersion: string): VersionInfo | null;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Install the `expo` package
3
+ *
4
+ * @param projectRoot target project root folder
5
+ * @param sdkVersion expo sdk version
6
+ */
7
+ export declare function installExpoPackageAsync(projectRoot: string, sdkVersion: string): Promise<void>;
8
+ /**
9
+ * Running `pod install` for the target project
10
+ *
11
+ * @param projectRoot target project root folder
12
+ */
13
+ export declare function installPodsAsync(projectRoot: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "install-expo-modules",
3
- "version": "0.2.8",
3
+ "version": "0.3.2",
4
4
  "description": "Tools to install expo-modules for existing react-native projects",
5
5
  "main": "build",
6
6
  "scripts": {
@@ -38,14 +38,15 @@
38
38
  "!*/__tests__/*"
39
39
  ],
40
40
  "dependencies": {
41
- "@expo/config": "6.0.21",
42
- "@expo/config-plugins": "4.1.2",
43
- "@expo/package-manager": "0.0.52",
41
+ "@expo/config": "6.0.23",
42
+ "@expo/config-plugins": "4.1.4",
43
+ "@expo/package-manager": "0.0.53",
44
44
  "chalk": "^4.1.2",
45
45
  "commander": "2.20.0",
46
46
  "find-up": "^5.0.0",
47
47
  "glob": "7.1.6",
48
48
  "prompts": "^2.3.2",
49
+ "resolve-from": "^5.0.0",
49
50
  "semver": "7.3.2"
50
51
  },
51
52
  "devDependencies": {