create-expo 5.1.5 → 5.1.7
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/{810.index.js → 393.index.js} +3428 -27
- package/build/{589.index.js → 536.index.js} +112 -208
- package/build/Template.d.ts +1 -1
- package/build/index.js +3 -3
- package/build/resolveExpoVersions.d.ts +9 -0
- package/build/resolveTemplate.d.ts +12 -0
- package/package.json +5 -5
- package/build/promptSdkVersion.d.ts +0 -23
- /package/build/__tests__/{promptSdkVersion.test.d.ts → resolveExpoVersions.d.ts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve the latest Expo SDK version, and the latest Expo Go-compatible version.
|
|
3
|
+
* By default, we use the Expo Go-compatible version.
|
|
4
|
+
* To inform users on how to override this, we need to know both versions.
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveExpoVersions(): Promise<{
|
|
7
|
+
latestVersion: number | null;
|
|
8
|
+
expoGoVersion: number | null;
|
|
9
|
+
} | null>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ExpoTemplateOptions {
|
|
2
|
+
/** The template to create, formatted as npm version spec */
|
|
3
|
+
template: string;
|
|
4
|
+
/** The project name to create */
|
|
5
|
+
projectName: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Resolve the Expo Go compatible template and inform the user.
|
|
9
|
+
* This only applies to first-party templates, listed in {@link ALIASES}.
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveTemplate({ template, projectName, }: ExpoTemplateOptions): Promise<string>;
|
|
12
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-expo",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.7",
|
|
4
4
|
"description": "Create universal Expo apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"expo",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"./package.json": "./package.json"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@expo/config": "58.0.
|
|
33
|
-
"@expo/internal-scripts": "58.0.
|
|
32
|
+
"@expo/config": "58.0.11",
|
|
33
|
+
"@expo/internal-scripts": "58.0.6",
|
|
34
34
|
"@expo/json-file": "11.2.1",
|
|
35
|
-
"@expo/package-manager": "1.14.
|
|
35
|
+
"@expo/package-manager": "1.14.2",
|
|
36
36
|
"@expo/spawn-async": "^1.8.0",
|
|
37
37
|
"@octokit/types": "^13.5.0",
|
|
38
38
|
"@types/debug": "^4.1.7",
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"chalk": "^4.0.0",
|
|
46
46
|
"debug": "^4.3.4",
|
|
47
47
|
"getenv": "^2.0.0",
|
|
48
|
-
"glob": "^13.0.6",
|
|
49
48
|
"memfs": "^3.6.0",
|
|
50
49
|
"multitars": "^1.0.2",
|
|
51
50
|
"nock": "^14.0.10",
|
|
@@ -54,6 +53,7 @@
|
|
|
54
53
|
"prompts": "^2.4.2",
|
|
55
54
|
"resolve-workspace-root": "^2.0.0",
|
|
56
55
|
"slugify": "^1.6.6",
|
|
56
|
+
"tinyglobby": "^0.2.15",
|
|
57
57
|
"update-check": "^1.5.4"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
type SdkVersionsSummary = {
|
|
2
|
-
/** Highest released SDK major version (highest entry with a releaseNoteUrl). */
|
|
3
|
-
latest: number;
|
|
4
|
-
/** Major SDK version currently shipping in the App Store / Play Store version of Expo Go. */
|
|
5
|
-
expoGoCompatible: number | null;
|
|
6
|
-
/** All released SDK major versions, sorted descending. */
|
|
7
|
-
available: number[];
|
|
8
|
-
};
|
|
9
|
-
export declare function fetchSdkVersionsAsync(): Promise<SdkVersionsSummary | null>;
|
|
10
|
-
/**
|
|
11
|
-
* If the resolved template is an Expo-published template without an explicit
|
|
12
|
-
* SDK tag, prompt the user to pick which Expo SDK to use and return the
|
|
13
|
-
* template name with the chosen SDK tag appended.
|
|
14
|
-
*
|
|
15
|
-
* Returns the template unchanged if the user is non-interactive, the template
|
|
16
|
-
* already targets a specific version, or we can't reach the versions endpoint.
|
|
17
|
-
*/
|
|
18
|
-
export declare function applySdkVersionToTemplateAsync(template: string, { yes, showAlternatives, projectName, }: {
|
|
19
|
-
yes: boolean;
|
|
20
|
-
showAlternatives?: boolean;
|
|
21
|
-
projectName?: string;
|
|
22
|
-
}): Promise<string>;
|
|
23
|
-
export {};
|
|
File without changes
|