eas-cli 12.6.2 → 13.0.0

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.
Files changed (53) hide show
  1. package/README.md +63 -63
  2. package/build/build/local.js +1 -1
  3. package/build/commandUtils/context/DynamicProjectConfigContextField.js +4 -4
  4. package/build/commandUtils/context/OptionalPrivateProjectConfigContextField.js +2 -2
  5. package/build/commandUtils/context/PrivateProjectConfigContextField.js +2 -2
  6. package/build/commandUtils/context/ProjectIdContextField.js +1 -1
  7. package/build/commandUtils/context/ServerSideEnvironmentVariablesContextField.js +1 -1
  8. package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +1 -1
  9. package/build/commandUtils/context/contextUtils/loadServerSideEnvironmentVariablesAsync.js +1 -1
  10. package/build/commandUtils/flags.d.ts +3 -0
  11. package/build/commandUtils/flags.js +11 -1
  12. package/build/commands/env/create.d.ts +5 -0
  13. package/build/commands/env/create.js +22 -7
  14. package/build/commands/env/delete.d.ts +6 -1
  15. package/build/commands/env/delete.js +17 -3
  16. package/build/commands/env/exec.d.ts +1 -3
  17. package/build/commands/env/exec.js +23 -17
  18. package/build/commands/env/get.d.ts +6 -1
  19. package/build/commands/env/get.js +24 -4
  20. package/build/commands/env/link.d.ts +6 -0
  21. package/build/commands/env/link.js +31 -1
  22. package/build/commands/env/list.d.ts +7 -1
  23. package/build/commands/env/list.js +25 -2
  24. package/build/commands/env/pull.d.ts +6 -1
  25. package/build/commands/env/pull.js +14 -2
  26. package/build/commands/env/push.d.ts +12 -0
  27. package/build/commands/env/push.js +21 -1
  28. package/build/commands/env/unlink.d.ts +6 -0
  29. package/build/commands/env/unlink.js +27 -1
  30. package/build/commands/env/update.d.ts +5 -0
  31. package/build/commands/env/update.js +20 -3
  32. package/build/commands/project/init.js +3 -3
  33. package/build/commands/project/onboarding.js +2 -2
  34. package/build/commands/update/configure.d.ts +3 -1
  35. package/build/commands/update/configure.js +6 -5
  36. package/build/commands/update/index.d.ts +4 -2
  37. package/build/commands/update/index.js +5 -25
  38. package/build/credentials/android/actions/BuildCredentialsUtils.js +4 -4
  39. package/build/credentials/android/actions/CreateKeystore.js +1 -1
  40. package/build/credentials/context.d.ts +3 -3
  41. package/build/credentials/context.js +6 -6
  42. package/build/credentials/ios/actions/BuildCredentialsUtils.js +3 -3
  43. package/build/credentials/manager/ManageIos.js +5 -4
  44. package/build/credentials/manager/SetUpIosBuildCredentials.js +1 -1
  45. package/build/project/expoConfig.d.ts +2 -2
  46. package/build/project/expoConfig.js +45 -13
  47. package/build/project/ios/entitlements.js +30 -7
  48. package/build/project/projectUtils.d.ts +1 -0
  49. package/build/project/projectUtils.js +6 -1
  50. package/build/utils/variableUtils.d.ts +1 -0
  51. package/build/utils/variableUtils.js +5 -1
  52. package/oclif.manifest.json +105 -42
  53. package/package.json +14 -14
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatVariable = exports.performForEnvironmentsAsync = exports.formatVariableValue = exports.formatVariableName = void 0;
3
+ exports.formatVariable = exports.performForEnvironmentsAsync = exports.formatVariableValue = exports.formatVariableName = exports.isEnvironment = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const dateformat_1 = tslib_1.__importDefault(require("dateformat"));
6
6
  const formatFields_1 = tslib_1.__importDefault(require("./formatFields"));
7
7
  const generated_1 = require("../graphql/generated");
8
+ function isEnvironment(environment) {
9
+ return Object.values(generated_1.EnvironmentVariableEnvironment).includes(environment);
10
+ }
11
+ exports.isEnvironment = isEnvironment;
8
12
  function formatVariableName(variable) {
9
13
  const name = variable.name;
10
14
  const scope = variable.scope === generated_1.EnvironmentVariableScope.Project ? 'project' : 'shared';
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "12.6.2",
2
+ "version": "13.0.0",
3
3
  "commands": {
4
4
  "analytics": {
5
5
  "id": "analytics",
@@ -2022,7 +2022,13 @@
2022
2022
  "allowNo": false
2023
2023
  }
2024
2024
  },
2025
- "args": {},
2025
+ "args": {
2026
+ "environment": {
2027
+ "name": "environment",
2028
+ "description": "Environment to create the variable in. One of 'production', 'preview', or 'development'.",
2029
+ "required": false
2030
+ }
2031
+ },
2026
2032
  "contextDefinition": {
2027
2033
  "projectId": {},
2028
2034
  "analytics": {},
@@ -2076,7 +2082,13 @@
2076
2082
  "allowNo": false
2077
2083
  }
2078
2084
  },
2079
- "args": {},
2085
+ "args": {
2086
+ "environment": {
2087
+ "name": "environment",
2088
+ "description": "Current environment of the variable to delete. One of 'production', 'preview', or 'development'.",
2089
+ "required": false
2090
+ }
2091
+ },
2080
2092
  "contextDefinition": {
2081
2093
  "projectId": {},
2082
2094
  "loggedIn": {}
@@ -2092,18 +2104,6 @@
2092
2104
  "hidden": true,
2093
2105
  "aliases": [],
2094
2106
  "flags": {
2095
- "environment": {
2096
- "name": "environment",
2097
- "type": "option",
2098
- "description": "Environment variable's environment",
2099
- "helpValue": "(development|preview|production)",
2100
- "multiple": false,
2101
- "options": [
2102
- "development",
2103
- "preview",
2104
- "production"
2105
- ]
2106
- },
2107
2107
  "non-interactive": {
2108
2108
  "name": "non-interactive",
2109
2109
  "type": "boolean",
@@ -2112,8 +2112,13 @@
2112
2112
  }
2113
2113
  },
2114
2114
  "args": {
2115
- "BASH_COMMAND": {
2116
- "name": "BASH_COMMAND",
2115
+ "environment": {
2116
+ "name": "environment",
2117
+ "description": "Environment to execute the command in. One of 'production', 'preview', or 'development'.",
2118
+ "required": true
2119
+ },
2120
+ "bash_command": {
2121
+ "name": "bash_command",
2117
2122
  "description": "bash command to execute with the environment variables from the environment",
2118
2123
  "required": true
2119
2124
  }
@@ -2182,7 +2187,13 @@
2182
2187
  "allowNo": false
2183
2188
  }
2184
2189
  },
2185
- "args": {},
2190
+ "args": {
2191
+ "environment": {
2192
+ "name": "environment",
2193
+ "description": "Current environment of the variable. One of 'production', 'preview', or 'development'.",
2194
+ "required": false
2195
+ }
2196
+ },
2186
2197
  "contextDefinition": {
2187
2198
  "projectId": {},
2188
2199
  "loggedIn": {}
@@ -2235,7 +2246,13 @@
2235
2246
  "allowNo": false
2236
2247
  }
2237
2248
  },
2238
- "args": {},
2249
+ "args": {
2250
+ "environment": {
2251
+ "name": "environment",
2252
+ "description": "Environment to pull variables from. One of 'production', 'preview', or 'development'.",
2253
+ "required": false
2254
+ }
2255
+ },
2239
2256
  "contextDefinition": {
2240
2257
  "projectId": {},
2241
2258
  "loggedIn": {}
@@ -2263,6 +2280,18 @@
2263
2280
  "description": "Display files content in the output",
2264
2281
  "allowNo": false
2265
2282
  },
2283
+ "environment": {
2284
+ "name": "environment",
2285
+ "type": "option",
2286
+ "description": "Environment variable's environment",
2287
+ "helpValue": "(development|preview|production)",
2288
+ "multiple": true,
2289
+ "options": [
2290
+ "development",
2291
+ "preview",
2292
+ "production"
2293
+ ]
2294
+ },
2266
2295
  "format": {
2267
2296
  "name": "format",
2268
2297
  "type": "option",
@@ -2286,21 +2315,15 @@
2286
2315
  "project"
2287
2316
  ],
2288
2317
  "default": "PROJECT"
2289
- },
2318
+ }
2319
+ },
2320
+ "args": {
2290
2321
  "environment": {
2291
2322
  "name": "environment",
2292
- "type": "option",
2293
- "description": "Environment variable's environment",
2294
- "helpValue": "(development|preview|production)",
2295
- "multiple": true,
2296
- "options": [
2297
- "development",
2298
- "preview",
2299
- "production"
2300
- ]
2323
+ "description": "Environment to list the variables from. One of 'production', 'preview', or 'development'.",
2324
+ "required": false
2301
2325
  }
2302
2326
  },
2303
- "args": {},
2304
2327
  "contextDefinition": {
2305
2328
  "projectId": {},
2306
2329
  "loggedIn": {}
@@ -2316,6 +2339,12 @@
2316
2339
  "hidden": true,
2317
2340
  "aliases": [],
2318
2341
  "flags": {
2342
+ "non-interactive": {
2343
+ "name": "non-interactive",
2344
+ "type": "boolean",
2345
+ "description": "Run the command in non-interactive mode.",
2346
+ "allowNo": false
2347
+ },
2319
2348
  "environment": {
2320
2349
  "name": "environment",
2321
2350
  "type": "option",
@@ -2328,12 +2357,6 @@
2328
2357
  "production"
2329
2358
  ]
2330
2359
  },
2331
- "non-interactive": {
2332
- "name": "non-interactive",
2333
- "type": "boolean",
2334
- "description": "Run the command in non-interactive mode.",
2335
- "allowNo": false
2336
- },
2337
2360
  "path": {
2338
2361
  "name": "path",
2339
2362
  "type": "option",
@@ -2342,7 +2365,13 @@
2342
2365
  "default": ".env.local"
2343
2366
  }
2344
2367
  },
2345
- "args": {},
2368
+ "args": {
2369
+ "environment": {
2370
+ "name": "environment",
2371
+ "description": "Environment to pull variables from. One of 'production', 'preview', or 'development'.",
2372
+ "required": false
2373
+ }
2374
+ },
2346
2375
  "contextDefinition": {
2347
2376
  "projectId": {},
2348
2377
  "loggedIn": {},
@@ -2379,7 +2408,13 @@
2379
2408
  "default": ".env.local"
2380
2409
  }
2381
2410
  },
2382
- "args": {},
2411
+ "args": {
2412
+ "environment": {
2413
+ "name": "environment",
2414
+ "description": "Environment to push variables to. One of 'production', 'preview', or 'development'.",
2415
+ "required": false
2416
+ }
2417
+ },
2383
2418
  "contextDefinition": {
2384
2419
  "projectId": {},
2385
2420
  "loggedIn": {}
@@ -2420,7 +2455,13 @@
2420
2455
  "allowNo": false
2421
2456
  }
2422
2457
  },
2423
- "args": {},
2458
+ "args": {
2459
+ "environment": {
2460
+ "name": "environment",
2461
+ "description": "Environment to unlink the variable from. One of 'production', 'preview', or 'development'.",
2462
+ "required": false
2463
+ }
2464
+ },
2424
2465
  "contextDefinition": {
2425
2466
  "projectId": {},
2426
2467
  "loggedIn": {}
@@ -2520,7 +2561,13 @@
2520
2561
  "allowNo": false
2521
2562
  }
2522
2563
  },
2523
- "args": {},
2564
+ "args": {
2565
+ "environment": {
2566
+ "name": "environment",
2567
+ "description": "Current environment of the variable to update. One of 'production', 'preview', or 'development'.",
2568
+ "required": false
2569
+ }
2570
+ },
2524
2571
  "contextDefinition": {
2525
2572
  "projectId": {},
2526
2573
  "analytics": {},
@@ -2895,6 +2942,21 @@
2895
2942
  ],
2896
2943
  "default": "all"
2897
2944
  },
2945
+ "with-eas-environment-variables-set": {
2946
+ "name": "with-eas-environment-variables-set",
2947
+ "type": "option",
2948
+ "description": "Environment to use the server-side defined EAS environment variables for during command execution.",
2949
+ "hidden": true,
2950
+ "required": false,
2951
+ "helpValue": "(development|preview|production)",
2952
+ "multiple": false,
2953
+ "options": [
2954
+ "development",
2955
+ "preview",
2956
+ "production"
2957
+ ],
2958
+ "default": null
2959
+ },
2898
2960
  "non-interactive": {
2899
2961
  "name": "non-interactive",
2900
2962
  "type": "boolean",
@@ -3088,7 +3150,7 @@
3088
3150
  "with-eas-environment-variables-set": {
3089
3151
  "name": "with-eas-environment-variables-set",
3090
3152
  "type": "option",
3091
- "description": "Environment to use for EAS environment variables",
3153
+ "description": "Environment to use the server-side defined EAS environment variables for during command execution.",
3092
3154
  "hidden": true,
3093
3155
  "required": false,
3094
3156
  "helpValue": "(development|preview|production)",
@@ -3097,7 +3159,8 @@
3097
3159
  "development",
3098
3160
  "preview",
3099
3161
  "production"
3100
- ]
3162
+ ],
3163
+ "default": null
3101
3164
  },
3102
3165
  "json": {
3103
3166
  "name": "json",
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.6.2",
4
+ "version": "13.0.0",
5
5
  "author": "Expo <support@expo.dev>",
6
6
  "bin": {
7
7
  "eas": "./bin/run"
@@ -10,25 +10,25 @@
10
10
  "dependencies": {
11
11
  "@expo/apple-utils": "2.0.3",
12
12
  "@expo/code-signing-certificates": "0.0.5",
13
- "@expo/config": "8.5.4",
14
- "@expo/config-plugins": "7.8.4",
15
- "@expo/eas-build-job": "1.0.141",
16
- "@expo/eas-json": "12.6.2",
13
+ "@expo/config": "9.0.4",
14
+ "@expo/config-plugins": "8.0.10",
15
+ "@expo/eas-build-job": "1.0.144",
16
+ "@expo/eas-json": "13.0.0",
17
17
  "@expo/env": "^0.3.0",
18
- "@expo/json-file": "8.2.37",
18
+ "@expo/json-file": "8.3.3",
19
19
  "@expo/logger": "1.0.117",
20
20
  "@expo/multipart-body-parser": "1.1.0",
21
- "@expo/osascript": "2.0.33",
22
- "@expo/package-manager": "1.1.2",
23
- "@expo/pkcs12": "0.0.8",
24
- "@expo/plist": "0.0.20",
21
+ "@expo/osascript": "2.1.3",
22
+ "@expo/package-manager": "1.5.2",
23
+ "@expo/pkcs12": "0.1.2",
24
+ "@expo/plist": "0.1.3",
25
25
  "@expo/plugin-help": "5.1.23",
26
26
  "@expo/plugin-warn-if-update-available": "2.5.1",
27
- "@expo/prebuild-config": "6.7.3",
27
+ "@expo/prebuild-config": "7.0.9",
28
28
  "@expo/results": "1.0.0",
29
29
  "@expo/rudder-sdk-node": "1.1.1",
30
- "@expo/spawn-async": "1.7.0",
31
- "@expo/steps": "1.0.141",
30
+ "@expo/spawn-async": "1.7.2",
31
+ "@expo/steps": "1.0.144",
32
32
  "@expo/timeago.js": "1.0.0",
33
33
  "@oclif/core": "^1.26.2",
34
34
  "@oclif/plugin-autocomplete": "^2.3.10",
@@ -227,5 +227,5 @@
227
227
  "node": "20.11.0",
228
228
  "yarn": "1.22.21"
229
229
  },
230
- "gitHead": "c4075b9fd02a6021c1108e1273cb2dbc939692b0"
230
+ "gitHead": "5be97c50ae1c5b3939ee93e32e73db97fb199e64"
231
231
  }