eas-cli 16.31.0 → 18.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/README.md +116 -91
- package/build/branch/queries.js +6 -1
- package/build/build/createContext.js +5 -3
- package/build/build/queries.js +13 -1
- package/build/build/runBuildAndSubmit.js +2 -0
- package/build/build/utils/devClient.d.ts +1 -0
- package/build/build/utils/devClient.js +3 -2
- package/build/build/utils/repository.js +3 -3
- package/build/build/utils/resourceClass.d.ts +1 -1
- package/build/build/utils/resourceClass.js +2 -2
- package/build/channel/queries.js +10 -1
- package/build/commandUtils/context/contextUtils/createGraphqlClient.d.ts +1 -5
- package/build/commandUtils/new/templates/AGENTS.md +0 -1
- package/build/commandUtils/usageUtils.d.ts +58 -0
- package/build/commandUtils/usageUtils.js +204 -0
- package/build/commands/account/login.d.ts +1 -0
- package/build/commands/account/login.js +7 -2
- package/build/commands/account/usage.d.ts +16 -0
- package/build/commands/account/usage.js +326 -0
- package/build/commands/env/create.js +5 -2
- package/build/commands/env/list.js +1 -5
- package/build/commands/update/index.js +2 -2
- package/build/commands/upload.js +3 -3
- package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.js +1 -3
- package/build/devices/queries.js +23 -2
- package/build/graphql/generated.d.ts +1063 -39
- package/build/graphql/generated.js +78 -11
- package/build/graphql/mutations/EnvironmentVariableMutation.js +1 -4
- package/build/graphql/mutations/PublishMutation.js +1 -4
- package/build/graphql/mutations/UserPreferencesMutation.js +1 -3
- package/build/graphql/mutations/WorkflowRevisionMutation.js +2 -10
- package/build/graphql/queries/AccountQuery.d.ts +15 -0
- package/build/graphql/queries/AccountQuery.js +197 -0
- package/build/graphql/queries/AppVersionQuery.js +1 -5
- package/build/graphql/types/Account.d.ts +11 -0
- package/build/graphql/types/Account.js +142 -1
- package/build/log.js +1 -1
- package/build/ora.js +1 -1
- package/build/project/discourageExpoGoForProdAsync.d.ts +4 -0
- package/build/project/discourageExpoGoForProdAsync.js +46 -0
- package/build/rollout/actions/ManageRollout.js +5 -1
- package/build/rollout/actions/SelectRuntime.js +10 -1
- package/build/update/queries.js +28 -2
- package/build/user/SessionManager.d.ts +3 -2
- package/build/user/SessionManager.js +6 -6
- package/build/user/expoBrowserAuthFlowLauncher.d.ts +3 -0
- package/build/user/{expoSsoLauncher.js → expoBrowserAuthFlowLauncher.js} +21 -47
- package/build/user/fetchSessionSecretAndUserFromBrowserAuthFlow.d.ts +7 -0
- package/build/user/fetchSessionSecretAndUserFromBrowserAuthFlow.js +14 -0
- package/build/utils/prompts.js +3 -3
- package/build/utils/usage/checkForOverages.js +6 -4
- package/build/worker/mutations.js +2 -8
- package/oclif.manifest.json +40 -1
- package/package.json +60 -63
- package/build/graphql/queries/AccountUsageQuery.d.ts +0 -5
- package/build/graphql/queries/AccountUsageQuery.js +0 -40
- package/build/user/expoSsoLauncher.d.ts +0 -3
- package/build/user/fetchSessionSecretAndSsoUser.d.ts +0 -5
- package/build/user/fetchSessionSecretAndSsoUser.js +0 -17
package/package.json
CHANGED
|
@@ -1,22 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eas-cli",
|
|
3
|
+
"version": "18.0.1",
|
|
3
4
|
"description": "EAS command line tool",
|
|
4
|
-
"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"eas",
|
|
8
|
+
"expo"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/expo/eas-cli",
|
|
11
|
+
"bugs": "https://github.com/expo/eas-cli/issues",
|
|
12
|
+
"license": "MIT",
|
|
5
13
|
"author": "Expo <support@expo.dev>",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/expo/eas-cli.git",
|
|
17
|
+
"directory": "packages/eas-cli"
|
|
18
|
+
},
|
|
6
19
|
"bin": {
|
|
7
20
|
"eas": "./bin/run"
|
|
8
21
|
},
|
|
9
|
-
"
|
|
22
|
+
"files": [
|
|
23
|
+
"/bin",
|
|
24
|
+
"/build",
|
|
25
|
+
"/oclif.manifest.json",
|
|
26
|
+
"/schema"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"postpack": "rimraf oclif.manifest.json",
|
|
30
|
+
"prepack": "yarn rebuild && node ./scripts/prepack.js",
|
|
31
|
+
"rebuild": "rimraf build *.tsbuildinfo && yarn build",
|
|
32
|
+
"build": "yarn typecheck-for-build && yarn copy-new-templates",
|
|
33
|
+
"build-allow-unused": "tsc --project tsconfig.allowUnused.json",
|
|
34
|
+
"watch": "yarn typecheck-for-build --watch --preserveWatchOutput",
|
|
35
|
+
"watch-allow-unused": "yarn build-allow-unused --watch --preserveWatchOutput",
|
|
36
|
+
"typecheck": "tsc",
|
|
37
|
+
"typecheck-for-build": "tsc --project tsconfig.build.json",
|
|
38
|
+
"test": "jest",
|
|
39
|
+
"version": "yarn oclif readme && node scripts/patch-readme && git add README.md",
|
|
40
|
+
"generate-graphql-code": "graphql-codegen --config graphql-codegen.yml",
|
|
41
|
+
"verify-graphql-code": "./scripts/verify-graphql.sh",
|
|
42
|
+
"clean": "rimraf dist build tmp node_modules yarn-error.log *.tsbuildinfo",
|
|
43
|
+
"copy-new-templates": "rimraf build/commandUtils/new/templates && mkdir -p build/commandUtils/new && cp -r src/commandUtils/new/templates build/commandUtils/new"
|
|
44
|
+
},
|
|
10
45
|
"dependencies": {
|
|
11
46
|
"@expo/apple-utils": "2.1.13",
|
|
12
47
|
"@expo/code-signing-certificates": "0.0.5",
|
|
13
48
|
"@expo/config": "10.0.6",
|
|
14
49
|
"@expo/config-plugins": "9.0.12",
|
|
15
|
-
"@expo/eas-build-job": "
|
|
16
|
-
"@expo/eas-json": "
|
|
50
|
+
"@expo/eas-build-job": "18.0.1",
|
|
51
|
+
"@expo/eas-json": "18.0.1",
|
|
17
52
|
"@expo/env": "^1.0.0",
|
|
18
53
|
"@expo/json-file": "8.3.3",
|
|
19
|
-
"@expo/logger": "
|
|
54
|
+
"@expo/logger": "18.0.1",
|
|
20
55
|
"@expo/multipart-body-parser": "2.0.0",
|
|
21
56
|
"@expo/osascript": "2.1.4",
|
|
22
57
|
"@expo/package-manager": "1.9.10",
|
|
@@ -28,7 +63,7 @@
|
|
|
28
63
|
"@expo/results": "1.0.0",
|
|
29
64
|
"@expo/rudder-sdk-node": "1.1.1",
|
|
30
65
|
"@expo/spawn-async": "1.7.2",
|
|
31
|
-
"@expo/steps": "
|
|
66
|
+
"@expo/steps": "18.0.1",
|
|
32
67
|
"@expo/timeago.js": "1.0.0",
|
|
33
68
|
"@oclif/core": "^1.26.2",
|
|
34
69
|
"@oclif/plugin-autocomplete": "^2.3.10",
|
|
@@ -61,7 +96,6 @@
|
|
|
61
96
|
"invariant": "^2.2.2",
|
|
62
97
|
"jks-js": "1.1.0",
|
|
63
98
|
"joi": "17.11.0",
|
|
64
|
-
"jsonwebtoken": "9.0.0",
|
|
65
99
|
"keychain": "1.5.0",
|
|
66
100
|
"log-symbols": "4.1.0",
|
|
67
101
|
"mime": "3.0.0",
|
|
@@ -83,7 +117,7 @@
|
|
|
83
117
|
"semver": "7.5.4",
|
|
84
118
|
"set-interval-async": "3.0.3",
|
|
85
119
|
"slash": "3.0.0",
|
|
86
|
-
"tar": "
|
|
120
|
+
"tar": "7.5.7",
|
|
87
121
|
"tar-stream": "3.1.7",
|
|
88
122
|
"terminal-link": "2.1.1",
|
|
89
123
|
"ts-deepmerge": "6.2.0",
|
|
@@ -100,7 +134,7 @@
|
|
|
100
134
|
"@graphql-codegen/introspection": "4.0.0",
|
|
101
135
|
"@graphql-codegen/typescript": "4.0.1",
|
|
102
136
|
"@graphql-codegen/typescript-operations": "4.0.1",
|
|
103
|
-
"@tsconfig/
|
|
137
|
+
"@tsconfig/node20": "20.1.8",
|
|
104
138
|
"@types/cli-progress": "3.11.5",
|
|
105
139
|
"@types/dateformat": "3.0.1",
|
|
106
140
|
"@types/diff": "6.0.0",
|
|
@@ -109,7 +143,6 @@
|
|
|
109
143
|
"@types/fs-extra": "11.0.4",
|
|
110
144
|
"@types/getenv": "^1.0.0",
|
|
111
145
|
"@types/invariant": "^2.2.37",
|
|
112
|
-
"@types/jsonwebtoken": "8.5.1",
|
|
113
146
|
"@types/mime": "3.0.1",
|
|
114
147
|
"@types/node-fetch": "2.6.12",
|
|
115
148
|
"@types/node-forge": "1.3.1",
|
|
@@ -133,23 +166,13 @@
|
|
|
133
166
|
"ts-node": "10.9.2",
|
|
134
167
|
"typescript": "5.5.4"
|
|
135
168
|
},
|
|
136
|
-
"engines": {
|
|
137
|
-
"node": ">=18.0.0"
|
|
138
|
-
},
|
|
139
|
-
"files": [
|
|
140
|
-
"/bin",
|
|
141
|
-
"/build",
|
|
142
|
-
"/oclif.manifest.json",
|
|
143
|
-
"/schema"
|
|
144
|
-
],
|
|
145
|
-
"homepage": "https://github.com/expo/eas-cli",
|
|
146
|
-
"keywords": [
|
|
147
|
-
"expo",
|
|
148
|
-
"eas",
|
|
149
|
-
"cli"
|
|
150
|
-
],
|
|
151
|
-
"license": "MIT",
|
|
152
169
|
"oclif": {
|
|
170
|
+
"additionalHelpFlags": [
|
|
171
|
+
"-h"
|
|
172
|
+
],
|
|
173
|
+
"additionalVersionFlags": [
|
|
174
|
+
"-v"
|
|
175
|
+
],
|
|
153
176
|
"bin": "eas",
|
|
154
177
|
"commands": "./build/commands",
|
|
155
178
|
"plugins": [
|
|
@@ -173,6 +196,9 @@
|
|
|
173
196
|
"device": {
|
|
174
197
|
"description": "manage Apple devices for Internal Distribution"
|
|
175
198
|
},
|
|
199
|
+
"env": {
|
|
200
|
+
"description": "manage project and account environment variables"
|
|
201
|
+
},
|
|
176
202
|
"metadata": {
|
|
177
203
|
"description": "manage store configuration"
|
|
178
204
|
},
|
|
@@ -185,9 +211,6 @@
|
|
|
185
211
|
"secret": {
|
|
186
212
|
"description": "manage project and account secrets"
|
|
187
213
|
},
|
|
188
|
-
"env": {
|
|
189
|
-
"description": "manage project and account environment variables"
|
|
190
|
-
},
|
|
191
214
|
"update": {
|
|
192
215
|
"description": "manage individual updates"
|
|
193
216
|
},
|
|
@@ -198,13 +221,9 @@
|
|
|
198
221
|
"description": "manage workflows"
|
|
199
222
|
}
|
|
200
223
|
},
|
|
201
|
-
"warn-if-update-available": {
|
|
202
|
-
"timeoutInDays": 0.5,
|
|
203
|
-
"message": "<%= chalk('★') %> <%= chalk.bold(config.name + '@' + latest) %> <%= chalk.bold('is now available.') %>\n<%= chalk.dim('To upgrade, run:') %>\n<%= chalk.dim(chalk.bold('npm install -g eas-cli')) %>\n<%= chalk.dim('Proceeding with outdated version.') %>\n"
|
|
204
|
-
},
|
|
205
224
|
"update": {
|
|
206
225
|
"node": {
|
|
207
|
-
"version": "
|
|
226
|
+
"version": "20.19.4"
|
|
208
227
|
},
|
|
209
228
|
"s3": {
|
|
210
229
|
"templates": {
|
|
@@ -215,35 +234,13 @@
|
|
|
215
234
|
}
|
|
216
235
|
}
|
|
217
236
|
},
|
|
218
|
-
"
|
|
219
|
-
"-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
"-v"
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
"repository": {
|
|
226
|
-
"type": "git",
|
|
227
|
-
"url": "https://github.com/expo/eas-cli.git",
|
|
228
|
-
"directory": "packages/eas-cli"
|
|
237
|
+
"warn-if-update-available": {
|
|
238
|
+
"message": "<%= chalk('★') %> <%= chalk.bold(config.name + '@' + latest) %> <%= chalk.bold('is now available.') %>\n<%= chalk.dim('To upgrade, run:') %>\n<%= chalk.dim(chalk.bold('npm install -g eas-cli')) %>\n<%= chalk.dim('Proceeding with outdated version.') %>\n",
|
|
239
|
+
"timeoutInDays": 0.5
|
|
240
|
+
}
|
|
229
241
|
},
|
|
230
|
-
"
|
|
231
|
-
"
|
|
232
|
-
"prepack": "yarn rebuild && node ./scripts/prepack.js",
|
|
233
|
-
"rebuild": "rimraf build && yarn build",
|
|
234
|
-
"pretarball-ci": "./scripts/pretarball-ci.sh",
|
|
235
|
-
"build": "yarn typecheck-for-build && yarn copy-new-templates",
|
|
236
|
-
"build-allow-unused": "tsc --project tsconfig.allowUnused.json",
|
|
237
|
-
"watch": "yarn typecheck-for-build --watch --preserveWatchOutput",
|
|
238
|
-
"watch-allow-unused": "yarn build-allow-unused --watch --preserveWatchOutput",
|
|
239
|
-
"typecheck": "tsc",
|
|
240
|
-
"typecheck-for-build": "tsc --project tsconfig.build.json",
|
|
241
|
-
"test": "jest",
|
|
242
|
-
"version": "yarn oclif readme && node scripts/patch-readme && git add README.md",
|
|
243
|
-
"generate-graphql-code": "graphql-codegen --config graphql-codegen.yml",
|
|
244
|
-
"verify-graphql-code": "./scripts/verify-graphql.sh",
|
|
245
|
-
"clean": "rimraf dist build tmp node_modules yarn-error.log",
|
|
246
|
-
"copy-new-templates": "rimraf build/commandUtils/new/templates && mkdir -p build/commandUtils/new && cp -r src/commandUtils/new/templates build/commandUtils/new"
|
|
242
|
+
"engines": {
|
|
243
|
+
"node": ">=20.0.0"
|
|
247
244
|
},
|
|
248
|
-
"gitHead": "
|
|
245
|
+
"gitHead": "772d4dd654a71b0d88e73341106d417222dd401e"
|
|
249
246
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
-
import { AccountUsageForOverageWarningQuery } from '../generated';
|
|
3
|
-
export declare const AccountUsageQuery: {
|
|
4
|
-
getUsageForOverageWarningAsync(graphqlClient: ExpoGraphqlClient, accountId: string, currentDate: Date): Promise<AccountUsageForOverageWarningQuery["account"]["byId"]>;
|
|
5
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountUsageQuery = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
-
const client_1 = require("../client");
|
|
7
|
-
exports.AccountUsageQuery = {
|
|
8
|
-
async getUsageForOverageWarningAsync(graphqlClient, accountId, currentDate) {
|
|
9
|
-
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
10
|
-
.query((0, graphql_tag_1.default) `
|
|
11
|
-
query AccountUsageForOverageWarning($accountId: String!, $currentDate: DateTime!) {
|
|
12
|
-
account {
|
|
13
|
-
byId(accountId: $accountId) {
|
|
14
|
-
id
|
|
15
|
-
name
|
|
16
|
-
subscription {
|
|
17
|
-
id
|
|
18
|
-
name
|
|
19
|
-
}
|
|
20
|
-
usageMetrics {
|
|
21
|
-
EAS_BUILD: byBillingPeriod(date: $currentDate, service: BUILDS) {
|
|
22
|
-
id
|
|
23
|
-
planMetrics {
|
|
24
|
-
id
|
|
25
|
-
serviceMetric
|
|
26
|
-
value
|
|
27
|
-
limit
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
`, { accountId, currentDate: currentDate.toISOString() }, {
|
|
35
|
-
additionalTypenames: ['Account', 'AccountUsageMetrics', 'UsageMetricTotal'],
|
|
36
|
-
})
|
|
37
|
-
.toPromise());
|
|
38
|
-
return data.account.byId;
|
|
39
|
-
},
|
|
40
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchSessionSecretAndSsoUserAsync = fetchSessionSecretAndSsoUserAsync;
|
|
4
|
-
const expoSsoLauncher_1 = require("./expoSsoLauncher");
|
|
5
|
-
const fetchUser_1 = require("./fetchUser");
|
|
6
|
-
const api_1 = require("../api");
|
|
7
|
-
async function fetchSessionSecretAndSsoUserAsync() {
|
|
8
|
-
const sessionSecret = await (0, expoSsoLauncher_1.getSessionUsingBrowserAuthFlowAsync)({
|
|
9
|
-
expoWebsiteUrl: (0, api_1.getExpoWebsiteBaseUrl)(),
|
|
10
|
-
});
|
|
11
|
-
const userData = await (0, fetchUser_1.fetchUserAsync)({ sessionSecret });
|
|
12
|
-
return {
|
|
13
|
-
sessionSecret,
|
|
14
|
-
id: userData.id,
|
|
15
|
-
username: userData.username,
|
|
16
|
-
};
|
|
17
|
-
}
|