eas-cli 12.5.0 → 12.5.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.
- package/README.md +72 -64
- package/build/build/build.js +4 -4
- package/build/build/evaluateConfigWithEnvVarsAsync.d.ts +1 -4
- package/build/build/evaluateConfigWithEnvVarsAsync.js +3 -6
- package/build/build/runBuildAndSubmit.d.ts +0 -2
- package/build/build/runBuildAndSubmit.js +0 -1
- package/build/commandUtils/flags.d.ts +9 -2
- package/build/commandUtils/flags.js +14 -21
- package/build/commands/build/index.d.ts +0 -2
- package/build/commands/build/index.js +0 -2
- package/build/commands/build/resign.d.ts +0 -1
- package/build/commands/build/resign.js +0 -2
- package/build/commands/build/version/get.d.ts +0 -1
- package/build/commands/build/version/get.js +0 -2
- package/build/commands/build/version/set.d.ts +0 -1
- package/build/commands/build/version/set.js +0 -3
- package/build/commands/build/version/sync.d.ts +0 -1
- package/build/commands/build/version/sync.js +0 -3
- package/build/commands/config.d.ts +0 -1
- package/build/commands/config.js +0 -2
- package/build/commands/env/create.d.ts +3 -1
- package/build/commands/env/create.js +106 -74
- package/build/commands/env/delete.d.ts +2 -2
- package/build/commands/env/delete.js +37 -26
- package/build/commands/env/exec.d.ts +23 -0
- package/build/commands/env/exec.js +125 -0
- package/build/commands/env/get.d.ts +2 -2
- package/build/commands/env/get.js +40 -26
- package/build/commands/env/link.d.ts +4 -2
- package/build/commands/env/link.js +53 -14
- package/build/commands/env/list.d.ts +1 -2
- package/build/commands/env/list.js +49 -42
- package/build/commands/env/pull.js +1 -1
- package/build/commands/env/unlink.d.ts +3 -2
- package/build/commands/env/unlink.js +48 -21
- package/build/commands/env/update.d.ts +4 -2
- package/build/commands/env/update.js +68 -66
- package/build/commands/update/index.js +0 -1
- package/build/commands/update/republish.d.ts +2 -0
- package/build/commands/update/republish.js +34 -4
- package/build/commands/worker/deploy.js +44 -21
- package/build/credentials/manager/Actions.d.ts +4 -2
- package/build/credentials/manager/Actions.js +2 -0
- package/build/credentials/manager/AndroidActions.js +5 -0
- package/build/credentials/manager/IosActions.js +5 -0
- package/build/credentials/manager/ManageAndroid.js +3 -0
- package/build/credentials/manager/ManageIos.js +3 -0
- package/build/graphql/generated.d.ts +103 -22
- package/build/graphql/mutations/EnvironmentVariableMutation.d.ts +13 -22
- package/build/graphql/mutations/EnvironmentVariableMutation.js +18 -2
- package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +13 -7
- package/build/graphql/queries/EnvironmentVariablesQuery.js +21 -9
- package/build/graphql/types/EnvironmentVariable.js +2 -1
- package/build/graphql/types/Submission.js +1 -1
- package/build/project/publish.js +3 -2
- package/build/submit/utils/logs.js +16 -17
- package/build/update/getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.d.ts +5 -0
- package/build/update/{getBranchNameFromChannelNameAsync.js → getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.js} +8 -7
- package/build/update/republish.js +3 -2
- package/build/utils/prompts.d.ts +15 -3
- package/build/utils/prompts.js +33 -8
- package/build/utils/variableUtils.d.ts +4 -0
- package/build/utils/variableUtils.js +31 -0
- package/build/worker/assets.d.ts +7 -2
- package/build/worker/assets.js +5 -4
- package/build/worker/deployment.d.ts +10 -0
- package/build/worker/deployment.js +33 -22
- package/build/worker/upload.d.ts +1 -0
- package/build/worker/upload.js +29 -7
- package/build/worker/utils/logs.d.ts +14 -13
- package/build/worker/utils/logs.js +18 -18
- package/oclif.manifest.json +118 -108
- package/package.json +3 -3
- package/build/update/getBranchNameFromChannelNameAsync.d.ts +0 -2
- package/build/utils/formatVariable.d.ts +0 -2
- package/build/utils/formatVariable.js +0 -16
package/build/worker/upload.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.batchUploadAsync = exports.uploadAsync = void 0;
|
|
3
|
+
exports.batchUploadAsync = exports.callUploadApiAsync = exports.uploadAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const https = tslib_1.__importStar(require("https"));
|
|
6
6
|
const https_proxy_agent_1 = tslib_1.__importDefault(require("https-proxy-agent"));
|
|
@@ -112,6 +112,30 @@ async function uploadAsync(params) {
|
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
exports.uploadAsync = uploadAsync;
|
|
115
|
+
async function callUploadApiAsync(url, init) {
|
|
116
|
+
return await (0, promise_retry_1.default)(async (retry) => {
|
|
117
|
+
let response;
|
|
118
|
+
try {
|
|
119
|
+
response = await (0, node_fetch_1.default)(url, {
|
|
120
|
+
...init,
|
|
121
|
+
agent: getAgent(),
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
catch (error) {
|
|
125
|
+
return retry(error);
|
|
126
|
+
}
|
|
127
|
+
if (response.status >= 500 && response.status <= 599) {
|
|
128
|
+
retry(new Error(`Deployment failed: ${response.statusText}`));
|
|
129
|
+
}
|
|
130
|
+
try {
|
|
131
|
+
return await response.json();
|
|
132
|
+
}
|
|
133
|
+
catch (error) {
|
|
134
|
+
retry(error);
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
exports.callUploadApiAsync = callUploadApiAsync;
|
|
115
139
|
async function* batchUploadAsync(uploads) {
|
|
116
140
|
const controller = new AbortController();
|
|
117
141
|
const queue = new Set();
|
|
@@ -126,16 +150,14 @@ async function* batchUploadAsync(uploads) {
|
|
|
126
150
|
}
|
|
127
151
|
yield await Promise.race(queue);
|
|
128
152
|
}
|
|
153
|
+
if (queue.size > 0) {
|
|
154
|
+
controller.abort();
|
|
155
|
+
}
|
|
129
156
|
}
|
|
130
157
|
catch (error) {
|
|
131
|
-
if (
|
|
158
|
+
if (error.name !== 'AbortError') {
|
|
132
159
|
throw error;
|
|
133
160
|
}
|
|
134
161
|
}
|
|
135
|
-
finally {
|
|
136
|
-
if (queue.size > 0) {
|
|
137
|
-
controller.abort();
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
162
|
}
|
|
141
163
|
exports.batchUploadAsync = batchUploadAsync;
|
|
@@ -8,7 +8,7 @@ type WorkerDeploymentData = {
|
|
|
8
8
|
/** The actual deployment information */
|
|
9
9
|
deployment: Pick<WorkerDeploymentFragment, 'deploymentIdentifier' | 'url'>;
|
|
10
10
|
/** All modified aliases of the deployment, if any */
|
|
11
|
-
aliases?: WorkerDeploymentAliasFragment[];
|
|
11
|
+
aliases?: (WorkerDeploymentAliasFragment | null)[];
|
|
12
12
|
/** The production promoting alias of the deployment, if any */
|
|
13
13
|
production?: WorkerDeploymentAliasFragment | null;
|
|
14
14
|
};
|
|
@@ -16,19 +16,20 @@ export declare function formatWorkerDeploymentTable(data: WorkerDeploymentData):
|
|
|
16
16
|
type WorkerDeploymentOutput = {
|
|
17
17
|
/** The absolute URL to the dashboard on `expo.dev` */
|
|
18
18
|
dashboardUrl: string;
|
|
19
|
-
/** The deployment
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
/** The deployment identifier */
|
|
20
|
+
identifier: string;
|
|
21
|
+
/** The deployment URL */
|
|
22
|
+
url: string;
|
|
23
|
+
/** Custom aliases, if assigned */
|
|
24
|
+
aliases?: {
|
|
25
|
+
id: string;
|
|
26
|
+
url: string;
|
|
27
|
+
name: string;
|
|
28
|
+
}[];
|
|
29
|
+
/** The production alias, if assigned */
|
|
30
|
+
production?: {
|
|
31
|
+
id: string;
|
|
22
32
|
url: string;
|
|
23
|
-
aliases?: {
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
url: string;
|
|
27
|
-
}[];
|
|
28
|
-
production?: {
|
|
29
|
-
id: string;
|
|
30
|
-
url: string;
|
|
31
|
-
};
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
35
|
export declare function formatWorkerDeploymentJson(data: WorkerDeploymentData): WorkerDeploymentOutput;
|
|
@@ -19,7 +19,10 @@ function formatWorkerDeploymentTable(data) {
|
|
|
19
19
|
{ label: 'Deployment URL', value: data.deployment.url },
|
|
20
20
|
];
|
|
21
21
|
if (data.aliases?.length) {
|
|
22
|
-
|
|
22
|
+
const alias = data.aliases.filter(Boolean)[0];
|
|
23
|
+
if (alias) {
|
|
24
|
+
fields.push({ label: 'Alias URL', value: alias.url });
|
|
25
|
+
}
|
|
23
26
|
}
|
|
24
27
|
if (data.production) {
|
|
25
28
|
fields.push({ label: 'Production URL', value: data.production.url });
|
|
@@ -30,25 +33,22 @@ function formatWorkerDeploymentTable(data) {
|
|
|
30
33
|
}
|
|
31
34
|
exports.formatWorkerDeploymentTable = formatWorkerDeploymentTable;
|
|
32
35
|
function formatWorkerDeploymentJson(data) {
|
|
36
|
+
const aliases = !data.aliases
|
|
37
|
+
? []
|
|
38
|
+
: data.aliases.filter(Boolean);
|
|
33
39
|
return {
|
|
34
40
|
dashboardUrl: getDashboardUrl(data.projectId),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
? undefined
|
|
47
|
-
: {
|
|
48
|
-
id: data.production.id,
|
|
49
|
-
url: data.production.url,
|
|
50
|
-
},
|
|
51
|
-
},
|
|
41
|
+
identifier: data.deployment.deploymentIdentifier,
|
|
42
|
+
url: data.deployment.url,
|
|
43
|
+
aliases: !aliases.length
|
|
44
|
+
? undefined
|
|
45
|
+
: aliases.map(alias => ({ id: alias.id, url: alias.url, name: alias.aliasName })),
|
|
46
|
+
production: !data.production
|
|
47
|
+
? undefined
|
|
48
|
+
: {
|
|
49
|
+
id: data.production.id,
|
|
50
|
+
url: data.production.url,
|
|
51
|
+
},
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
exports.formatWorkerDeploymentJson = formatWorkerDeploymentJson;
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "12.5.
|
|
2
|
+
"version": "12.5.2",
|
|
3
3
|
"commands": {
|
|
4
4
|
"analytics": {
|
|
5
5
|
"id": "analytics",
|
|
@@ -54,19 +54,6 @@
|
|
|
54
54
|
"hidden": true,
|
|
55
55
|
"allowNo": false
|
|
56
56
|
},
|
|
57
|
-
"environment": {
|
|
58
|
-
"name": "environment",
|
|
59
|
-
"type": "option",
|
|
60
|
-
"description": "Environment variable's environment",
|
|
61
|
-
"hidden": true,
|
|
62
|
-
"helpValue": "(development|preview|production)",
|
|
63
|
-
"multiple": false,
|
|
64
|
-
"options": [
|
|
65
|
-
"development",
|
|
66
|
-
"preview",
|
|
67
|
-
"production"
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
57
|
"json": {
|
|
71
58
|
"name": "json",
|
|
72
59
|
"type": "boolean",
|
|
@@ -787,19 +774,6 @@
|
|
|
787
774
|
"type": "boolean",
|
|
788
775
|
"description": "Run the command in non-interactive mode.",
|
|
789
776
|
"allowNo": false
|
|
790
|
-
},
|
|
791
|
-
"environment": {
|
|
792
|
-
"name": "environment",
|
|
793
|
-
"type": "option",
|
|
794
|
-
"description": "Environment variable's environment",
|
|
795
|
-
"hidden": true,
|
|
796
|
-
"helpValue": "(development|preview|production)",
|
|
797
|
-
"multiple": false,
|
|
798
|
-
"options": [
|
|
799
|
-
"development",
|
|
800
|
-
"preview",
|
|
801
|
-
"production"
|
|
802
|
-
]
|
|
803
777
|
}
|
|
804
778
|
},
|
|
805
779
|
"args": {},
|
|
@@ -1182,19 +1156,6 @@
|
|
|
1182
1156
|
"type": "boolean",
|
|
1183
1157
|
"description": "Run the command in non-interactive mode.",
|
|
1184
1158
|
"allowNo": false
|
|
1185
|
-
},
|
|
1186
|
-
"environment": {
|
|
1187
|
-
"name": "environment",
|
|
1188
|
-
"type": "option",
|
|
1189
|
-
"description": "Environment variable's environment",
|
|
1190
|
-
"hidden": true,
|
|
1191
|
-
"helpValue": "(development|preview|production)",
|
|
1192
|
-
"multiple": false,
|
|
1193
|
-
"options": [
|
|
1194
|
-
"development",
|
|
1195
|
-
"preview",
|
|
1196
|
-
"production"
|
|
1197
|
-
]
|
|
1198
1159
|
}
|
|
1199
1160
|
},
|
|
1200
1161
|
"args": {},
|
|
@@ -1952,7 +1913,7 @@
|
|
|
1952
1913
|
"type": "option",
|
|
1953
1914
|
"description": "Environment variable's environment",
|
|
1954
1915
|
"helpValue": "(development|preview|production)",
|
|
1955
|
-
"multiple":
|
|
1916
|
+
"multiple": true,
|
|
1956
1917
|
"options": [
|
|
1957
1918
|
"development",
|
|
1958
1919
|
"preview",
|
|
@@ -1983,12 +1944,24 @@
|
|
|
1983
1944
|
"hidden": true,
|
|
1984
1945
|
"aliases": [],
|
|
1985
1946
|
"flags": {
|
|
1986
|
-
"name": {
|
|
1987
|
-
"name": "name",
|
|
1947
|
+
"variable-name": {
|
|
1948
|
+
"name": "variable-name",
|
|
1988
1949
|
"type": "option",
|
|
1989
1950
|
"description": "Name of the variable to delete",
|
|
1990
1951
|
"multiple": false
|
|
1991
1952
|
},
|
|
1953
|
+
"variable-environment": {
|
|
1954
|
+
"name": "variable-environment",
|
|
1955
|
+
"type": "option",
|
|
1956
|
+
"description": "Current environment of the variable to delete",
|
|
1957
|
+
"helpValue": "(development|preview|production)",
|
|
1958
|
+
"multiple": false,
|
|
1959
|
+
"options": [
|
|
1960
|
+
"development",
|
|
1961
|
+
"preview",
|
|
1962
|
+
"production"
|
|
1963
|
+
]
|
|
1964
|
+
},
|
|
1992
1965
|
"scope": {
|
|
1993
1966
|
"name": "scope",
|
|
1994
1967
|
"type": "option",
|
|
@@ -2001,6 +1974,29 @@
|
|
|
2001
1974
|
],
|
|
2002
1975
|
"default": "PROJECT"
|
|
2003
1976
|
},
|
|
1977
|
+
"non-interactive": {
|
|
1978
|
+
"name": "non-interactive",
|
|
1979
|
+
"type": "boolean",
|
|
1980
|
+
"description": "Run the command in non-interactive mode.",
|
|
1981
|
+
"allowNo": false
|
|
1982
|
+
}
|
|
1983
|
+
},
|
|
1984
|
+
"args": {},
|
|
1985
|
+
"contextDefinition": {
|
|
1986
|
+
"loggedIn": {},
|
|
1987
|
+
"privateProjectConfig": {}
|
|
1988
|
+
}
|
|
1989
|
+
},
|
|
1990
|
+
"env:exec": {
|
|
1991
|
+
"id": "env:exec",
|
|
1992
|
+
"description": "execute a bash command with environment variables from the selected environment",
|
|
1993
|
+
"strict": true,
|
|
1994
|
+
"pluginName": "eas-cli",
|
|
1995
|
+
"pluginAlias": "eas-cli",
|
|
1996
|
+
"pluginType": "core",
|
|
1997
|
+
"hidden": true,
|
|
1998
|
+
"aliases": [],
|
|
1999
|
+
"flags": {
|
|
2004
2000
|
"environment": {
|
|
2005
2001
|
"name": "environment",
|
|
2006
2002
|
"type": "option",
|
|
@@ -2020,7 +2016,13 @@
|
|
|
2020
2016
|
"allowNo": false
|
|
2021
2017
|
}
|
|
2022
2018
|
},
|
|
2023
|
-
"args": {
|
|
2019
|
+
"args": {
|
|
2020
|
+
"BASH_COMMAND": {
|
|
2021
|
+
"name": "BASH_COMMAND",
|
|
2022
|
+
"description": "bash command to execute with the environment variables from the environment",
|
|
2023
|
+
"required": true
|
|
2024
|
+
}
|
|
2025
|
+
},
|
|
2024
2026
|
"contextDefinition": {
|
|
2025
2027
|
"loggedIn": {},
|
|
2026
2028
|
"privateProjectConfig": {}
|
|
@@ -2036,12 +2038,24 @@
|
|
|
2036
2038
|
"hidden": true,
|
|
2037
2039
|
"aliases": [],
|
|
2038
2040
|
"flags": {
|
|
2039
|
-
"name": {
|
|
2040
|
-
"name": "name",
|
|
2041
|
+
"variable-name": {
|
|
2042
|
+
"name": "variable-name",
|
|
2041
2043
|
"type": "option",
|
|
2042
2044
|
"description": "Name of the variable",
|
|
2043
2045
|
"multiple": false
|
|
2044
2046
|
},
|
|
2047
|
+
"variable-environment": {
|
|
2048
|
+
"name": "variable-environment",
|
|
2049
|
+
"type": "option",
|
|
2050
|
+
"description": "Current environment of the variable",
|
|
2051
|
+
"helpValue": "(development|preview|production)",
|
|
2052
|
+
"multiple": false,
|
|
2053
|
+
"options": [
|
|
2054
|
+
"development",
|
|
2055
|
+
"preview",
|
|
2056
|
+
"production"
|
|
2057
|
+
]
|
|
2058
|
+
},
|
|
2045
2059
|
"format": {
|
|
2046
2060
|
"name": "format",
|
|
2047
2061
|
"type": "option",
|
|
@@ -2071,18 +2085,6 @@
|
|
|
2071
2085
|
"type": "boolean",
|
|
2072
2086
|
"description": "Run the command in non-interactive mode.",
|
|
2073
2087
|
"allowNo": false
|
|
2074
|
-
},
|
|
2075
|
-
"environment": {
|
|
2076
|
-
"name": "environment",
|
|
2077
|
-
"type": "option",
|
|
2078
|
-
"description": "Environment variable's environment",
|
|
2079
|
-
"helpValue": "(development|preview|production)",
|
|
2080
|
-
"multiple": false,
|
|
2081
|
-
"options": [
|
|
2082
|
-
"development",
|
|
2083
|
-
"preview",
|
|
2084
|
-
"production"
|
|
2085
|
-
]
|
|
2086
2088
|
}
|
|
2087
2089
|
},
|
|
2088
2090
|
"args": {},
|
|
@@ -2101,18 +2103,30 @@
|
|
|
2101
2103
|
"hidden": true,
|
|
2102
2104
|
"aliases": [],
|
|
2103
2105
|
"flags": {
|
|
2104
|
-
"name": {
|
|
2105
|
-
"name": "name",
|
|
2106
|
+
"variable-name": {
|
|
2107
|
+
"name": "variable-name",
|
|
2106
2108
|
"type": "option",
|
|
2107
2109
|
"description": "Name of the variable",
|
|
2108
2110
|
"multiple": false
|
|
2109
2111
|
},
|
|
2112
|
+
"variable-environment": {
|
|
2113
|
+
"name": "variable-environment",
|
|
2114
|
+
"type": "option",
|
|
2115
|
+
"description": "Current environment of the variable to link",
|
|
2116
|
+
"helpValue": "(development|preview|production)",
|
|
2117
|
+
"multiple": false,
|
|
2118
|
+
"options": [
|
|
2119
|
+
"development",
|
|
2120
|
+
"preview",
|
|
2121
|
+
"production"
|
|
2122
|
+
]
|
|
2123
|
+
},
|
|
2110
2124
|
"environment": {
|
|
2111
2125
|
"name": "environment",
|
|
2112
2126
|
"type": "option",
|
|
2113
2127
|
"description": "Environment variable's environment",
|
|
2114
2128
|
"helpValue": "(development|preview|production)",
|
|
2115
|
-
"multiple":
|
|
2129
|
+
"multiple": true,
|
|
2116
2130
|
"options": [
|
|
2117
2131
|
"development",
|
|
2118
2132
|
"preview",
|
|
@@ -2177,7 +2191,7 @@
|
|
|
2177
2191
|
"type": "option",
|
|
2178
2192
|
"description": "Environment variable's environment",
|
|
2179
2193
|
"helpValue": "(development|preview|production)",
|
|
2180
|
-
"multiple":
|
|
2194
|
+
"multiple": true,
|
|
2181
2195
|
"options": [
|
|
2182
2196
|
"development",
|
|
2183
2197
|
"preview",
|
|
@@ -2279,8 +2293,8 @@
|
|
|
2279
2293
|
"hidden": true,
|
|
2280
2294
|
"aliases": [],
|
|
2281
2295
|
"flags": {
|
|
2282
|
-
"name": {
|
|
2283
|
-
"name": "name",
|
|
2296
|
+
"variable-name": {
|
|
2297
|
+
"name": "variable-name",
|
|
2284
2298
|
"type": "option",
|
|
2285
2299
|
"description": "Name of the variable",
|
|
2286
2300
|
"multiple": false
|
|
@@ -2290,7 +2304,7 @@
|
|
|
2290
2304
|
"type": "option",
|
|
2291
2305
|
"description": "Environment variable's environment",
|
|
2292
2306
|
"helpValue": "(development|preview|production)",
|
|
2293
|
-
"multiple":
|
|
2307
|
+
"multiple": true,
|
|
2294
2308
|
"options": [
|
|
2295
2309
|
"development",
|
|
2296
2310
|
"preview",
|
|
@@ -2320,16 +2334,34 @@
|
|
|
2320
2334
|
"hidden": true,
|
|
2321
2335
|
"aliases": [],
|
|
2322
2336
|
"flags": {
|
|
2337
|
+
"variable-name": {
|
|
2338
|
+
"name": "variable-name",
|
|
2339
|
+
"type": "option",
|
|
2340
|
+
"description": "Current name of the variable",
|
|
2341
|
+
"multiple": false
|
|
2342
|
+
},
|
|
2343
|
+
"variable-environment": {
|
|
2344
|
+
"name": "variable-environment",
|
|
2345
|
+
"type": "option",
|
|
2346
|
+
"description": "Current environment of the variable to update",
|
|
2347
|
+
"helpValue": "(development|preview|production)",
|
|
2348
|
+
"multiple": false,
|
|
2349
|
+
"options": [
|
|
2350
|
+
"development",
|
|
2351
|
+
"preview",
|
|
2352
|
+
"production"
|
|
2353
|
+
]
|
|
2354
|
+
},
|
|
2323
2355
|
"name": {
|
|
2324
2356
|
"name": "name",
|
|
2325
2357
|
"type": "option",
|
|
2326
|
-
"description": "
|
|
2358
|
+
"description": "New name of the variable",
|
|
2327
2359
|
"multiple": false
|
|
2328
2360
|
},
|
|
2329
2361
|
"value": {
|
|
2330
2362
|
"name": "value",
|
|
2331
2363
|
"type": "option",
|
|
2332
|
-
"description": "
|
|
2364
|
+
"description": "New value or the variable",
|
|
2333
2365
|
"multiple": false
|
|
2334
2366
|
},
|
|
2335
2367
|
"visibility": {
|
|
@@ -2361,7 +2393,7 @@
|
|
|
2361
2393
|
"type": "option",
|
|
2362
2394
|
"description": "Environment variable's environment",
|
|
2363
2395
|
"helpValue": "(development|preview|production)",
|
|
2364
|
-
"multiple":
|
|
2396
|
+
"multiple": true,
|
|
2365
2397
|
"options": [
|
|
2366
2398
|
"development",
|
|
2367
2399
|
"preview",
|
|
@@ -2905,7 +2937,6 @@
|
|
|
2905
2937
|
"name": "rollout-percentage",
|
|
2906
2938
|
"type": "option",
|
|
2907
2939
|
"description": "Percentage of users this update should be immediately available to. Users not in the rollout will be served the previous latest update on the branch, even if that update is itself being rolled out. The specified number must be an integer between 1 and 100. When not specified, this defaults to 100.",
|
|
2908
|
-
"hidden": true,
|
|
2909
2940
|
"required": false,
|
|
2910
2941
|
"multiple": false
|
|
2911
2942
|
},
|
|
@@ -3060,6 +3091,24 @@
|
|
|
3060
3091
|
"channel"
|
|
3061
3092
|
]
|
|
3062
3093
|
},
|
|
3094
|
+
"destination-channel": {
|
|
3095
|
+
"name": "destination-channel",
|
|
3096
|
+
"type": "option",
|
|
3097
|
+
"description": "Channel name to select a branch to republish to if republishing to a different branch",
|
|
3098
|
+
"multiple": false,
|
|
3099
|
+
"exclusive": [
|
|
3100
|
+
"destination-branch"
|
|
3101
|
+
]
|
|
3102
|
+
},
|
|
3103
|
+
"destination-branch": {
|
|
3104
|
+
"name": "destination-branch",
|
|
3105
|
+
"type": "option",
|
|
3106
|
+
"description": "Branch name to republish to if republishing to a different branch",
|
|
3107
|
+
"multiple": false,
|
|
3108
|
+
"exclusive": [
|
|
3109
|
+
"destination-channel"
|
|
3110
|
+
]
|
|
3111
|
+
},
|
|
3063
3112
|
"message": {
|
|
3064
3113
|
"name": "message",
|
|
3065
3114
|
"type": "option",
|
|
@@ -3591,19 +3640,6 @@
|
|
|
3591
3640
|
"helpValue": "PROFILE_NAME",
|
|
3592
3641
|
"multiple": false
|
|
3593
3642
|
},
|
|
3594
|
-
"environment": {
|
|
3595
|
-
"name": "environment",
|
|
3596
|
-
"type": "option",
|
|
3597
|
-
"description": "Environment variable's environment",
|
|
3598
|
-
"hidden": true,
|
|
3599
|
-
"helpValue": "(development|preview|production)",
|
|
3600
|
-
"multiple": false,
|
|
3601
|
-
"options": [
|
|
3602
|
-
"development",
|
|
3603
|
-
"preview",
|
|
3604
|
-
"production"
|
|
3605
|
-
]
|
|
3606
|
-
},
|
|
3607
3643
|
"json": {
|
|
3608
3644
|
"name": "json",
|
|
3609
3645
|
"type": "boolean",
|
|
@@ -3656,19 +3692,6 @@
|
|
|
3656
3692
|
"description": "Name of the build profile from eas.json. Defaults to \"production\" if defined in eas.json.",
|
|
3657
3693
|
"helpValue": "PROFILE_NAME",
|
|
3658
3694
|
"multiple": false
|
|
3659
|
-
},
|
|
3660
|
-
"environment": {
|
|
3661
|
-
"name": "environment",
|
|
3662
|
-
"type": "option",
|
|
3663
|
-
"description": "Environment variable's environment",
|
|
3664
|
-
"hidden": true,
|
|
3665
|
-
"helpValue": "(development|preview|production)",
|
|
3666
|
-
"multiple": false,
|
|
3667
|
-
"options": [
|
|
3668
|
-
"development",
|
|
3669
|
-
"preview",
|
|
3670
|
-
"production"
|
|
3671
|
-
]
|
|
3672
3695
|
}
|
|
3673
3696
|
},
|
|
3674
3697
|
"args": {},
|
|
@@ -3708,19 +3731,6 @@
|
|
|
3708
3731
|
"description": "Name of the build profile from eas.json. Defaults to \"production\" if defined in eas.json.",
|
|
3709
3732
|
"helpValue": "PROFILE_NAME",
|
|
3710
3733
|
"multiple": false
|
|
3711
|
-
},
|
|
3712
|
-
"environment": {
|
|
3713
|
-
"name": "environment",
|
|
3714
|
-
"type": "option",
|
|
3715
|
-
"description": "Environment variable's environment",
|
|
3716
|
-
"hidden": true,
|
|
3717
|
-
"helpValue": "(development|preview|production)",
|
|
3718
|
-
"multiple": false,
|
|
3719
|
-
"options": [
|
|
3720
|
-
"development",
|
|
3721
|
-
"preview",
|
|
3722
|
-
"production"
|
|
3723
|
-
]
|
|
3724
3734
|
}
|
|
3725
3735
|
},
|
|
3726
3736
|
"args": {},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eas-cli",
|
|
3
3
|
"description": "EAS command line tool",
|
|
4
|
-
"version": "12.5.
|
|
4
|
+
"version": "12.5.2",
|
|
5
5
|
"author": "Expo <support@expo.dev>",
|
|
6
6
|
"bin": {
|
|
7
7
|
"eas": "./bin/run"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@expo/config-plugins": "7.8.4",
|
|
15
15
|
"@expo/config-types": "50.0.0",
|
|
16
16
|
"@expo/eas-build-job": "1.0.136",
|
|
17
|
-
"@expo/eas-json": "12.5.
|
|
17
|
+
"@expo/eas-json": "12.5.2",
|
|
18
18
|
"@expo/env": "^0.3.0",
|
|
19
19
|
"@expo/json-file": "8.2.37",
|
|
20
20
|
"@expo/logger": "1.0.117",
|
|
@@ -228,5 +228,5 @@
|
|
|
228
228
|
"node": "20.11.0",
|
|
229
229
|
"yarn": "1.22.21"
|
|
230
230
|
},
|
|
231
|
-
"gitHead": "
|
|
231
|
+
"gitHead": "6489ddc6adb71c11999f3bb2df848ef1ce2dd136"
|
|
232
232
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatVariable = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const dateformat_1 = tslib_1.__importDefault(require("dateformat"));
|
|
6
|
-
const formatFields_1 = tslib_1.__importDefault(require("./formatFields"));
|
|
7
|
-
function formatVariable(variable) {
|
|
8
|
-
return (0, formatFields_1.default)([
|
|
9
|
-
{ label: 'ID', value: variable.id },
|
|
10
|
-
{ label: 'Name', value: variable.name },
|
|
11
|
-
{ label: 'Value', value: variable.value ?? '(secret)' },
|
|
12
|
-
{ label: 'Scope', value: variable.scope },
|
|
13
|
-
{ label: 'Created at', value: (0, dateformat_1.default)(variable.createdAt, 'mmm dd HH:MM:ss') },
|
|
14
|
-
]);
|
|
15
|
-
}
|
|
16
|
-
exports.formatVariable = formatVariable;
|