eas-cli 7.8.1 → 7.8.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.
Files changed (25) hide show
  1. package/README.md +59 -59
  2. package/build/build/local.js +1 -1
  3. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.d.ts +7 -1
  4. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.js +41 -5
  5. package/build/credentials/ios/api/GraphqlClient.js +1 -1
  6. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +7 -1
  7. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.js +41 -5
  8. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +11 -3
  9. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +77 -53
  10. package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.d.ts +7 -1
  11. package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.js +41 -5
  12. package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.d.ts +7 -1
  13. package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.js +41 -5
  14. package/build/devices/actions/create/action.js +1 -1
  15. package/build/devices/actions/create/developerPortalMethod.d.ts +2 -2
  16. package/build/devices/actions/create/developerPortalMethod.js +5 -5
  17. package/build/graphql/generated.d.ts +279 -178
  18. package/build/project/publish.js +5 -4
  19. package/build/project/resolveRuntimeVersionAsync.js +5 -4
  20. package/build/utils/expoUpdatesCli.d.ts +2 -0
  21. package/build/utils/expoUpdatesCli.js +12 -4
  22. package/build/utils/relay.d.ts +6 -0
  23. package/build/utils/relay.js +40 -1
  24. package/oclif.manifest.json +1 -1
  25. package/package.json +2 -2
@@ -1167,6 +1167,8 @@ export type App = Project & {
1167
1167
  * @deprecated Classic updates have been deprecated.
1168
1168
  */
1169
1169
  published: Scalars['Boolean']['output'];
1170
+ /** App query field for querying details about an app's push notifications */
1171
+ pushNotifications: AppPushNotifications;
1170
1172
  pushSecurityEnabled: Scalars['Boolean']['output'];
1171
1173
  /**
1172
1174
  * Classic update release channel names (to be removed)
@@ -1494,6 +1496,19 @@ export declare enum AppPrivacy {
1494
1496
  Public = "PUBLIC",
1495
1497
  Unlisted = "UNLISTED"
1496
1498
  }
1499
+ export type AppPushNotifications = {
1500
+ __typename?: 'AppPushNotifications';
1501
+ id: Scalars['ID']['output'];
1502
+ insights: AppPushNotificationsInsights;
1503
+ };
1504
+ export type AppPushNotificationsInsights = {
1505
+ __typename?: 'AppPushNotificationsInsights';
1506
+ id: Scalars['ID']['output'];
1507
+ notificationsSentOverTime: NotificationsSentOverTimeData;
1508
+ };
1509
+ export type AppPushNotificationsInsightsNotificationsSentOverTimeArgs = {
1510
+ timespan: InsightsTimespan;
1511
+ };
1497
1512
  export type AppQuery = {
1498
1513
  __typename?: 'AppQuery';
1499
1514
  /**
@@ -3786,6 +3801,10 @@ export declare enum NotificationType {
3786
3801
  Email = "EMAIL",
3787
3802
  Web = "WEB"
3788
3803
  }
3804
+ export type NotificationsSentOverTimeData = {
3805
+ __typename?: 'NotificationsSentOverTimeData';
3806
+ data: LineChartData;
3807
+ };
3789
3808
  export type Offer = {
3790
3809
  __typename?: 'Offer';
3791
3810
  features?: Maybe<Array<Maybe<Feature>>>;
@@ -6318,6 +6337,47 @@ export type GoogleServiceAccountKeyByAccountQuery = {
6318
6337
  };
6319
6338
  };
6320
6339
  };
6340
+ export type GoogleServiceAccountKeysPaginatedByAccountQueryVariables = Exact<{
6341
+ accountName: Scalars['String']['input'];
6342
+ after?: InputMaybe<Scalars['String']['input']>;
6343
+ first?: InputMaybe<Scalars['Int']['input']>;
6344
+ before?: InputMaybe<Scalars['String']['input']>;
6345
+ last?: InputMaybe<Scalars['Int']['input']>;
6346
+ }>;
6347
+ export type GoogleServiceAccountKeysPaginatedByAccountQuery = {
6348
+ __typename?: 'RootQuery';
6349
+ account: {
6350
+ __typename?: 'AccountQuery';
6351
+ byName: {
6352
+ __typename?: 'Account';
6353
+ id: string;
6354
+ googleServiceAccountKeysPaginated: {
6355
+ __typename?: 'AccountGoogleServiceAccountKeysConnection';
6356
+ edges: Array<{
6357
+ __typename?: 'AccountGoogleServiceAccountKeysEdge';
6358
+ cursor: string;
6359
+ node: {
6360
+ __typename?: 'GoogleServiceAccountKey';
6361
+ id: string;
6362
+ projectIdentifier: string;
6363
+ privateKeyIdentifier: string;
6364
+ clientEmail: string;
6365
+ clientIdentifier: string;
6366
+ createdAt: any;
6367
+ updatedAt: any;
6368
+ };
6369
+ }>;
6370
+ pageInfo: {
6371
+ __typename?: 'PageInfo';
6372
+ hasNextPage: boolean;
6373
+ hasPreviousPage: boolean;
6374
+ startCursor?: string | null;
6375
+ endCursor?: string | null;
6376
+ };
6377
+ };
6378
+ };
6379
+ };
6380
+ };
6321
6381
  export type CreateAppStoreConnectApiKeyMutationVariables = Exact<{
6322
6382
  appStoreConnectApiKeyInput: AppStoreConnectApiKeyInput;
6323
6383
  accountId: Scalars['ID']['input'];
@@ -7742,32 +7802,50 @@ export type SetAppStoreConnectApiKeyForSubmissionsMutation = {
7742
7802
  };
7743
7803
  };
7744
7804
  };
7745
- export type AppStoreConnectApiKeyByAccountQueryVariables = Exact<{
7805
+ export type AppStoreConnectApiKeysPaginatedByAccountQueryVariables = Exact<{
7746
7806
  accountName: Scalars['String']['input'];
7807
+ after?: InputMaybe<Scalars['String']['input']>;
7808
+ first?: InputMaybe<Scalars['Int']['input']>;
7809
+ before?: InputMaybe<Scalars['String']['input']>;
7810
+ last?: InputMaybe<Scalars['Int']['input']>;
7747
7811
  }>;
7748
- export type AppStoreConnectApiKeyByAccountQuery = {
7812
+ export type AppStoreConnectApiKeysPaginatedByAccountQuery = {
7749
7813
  __typename?: 'RootQuery';
7750
7814
  account: {
7751
7815
  __typename?: 'AccountQuery';
7752
7816
  byName: {
7753
7817
  __typename?: 'Account';
7754
7818
  id: string;
7755
- appStoreConnectApiKeys: Array<{
7756
- __typename?: 'AppStoreConnectApiKey';
7757
- id: string;
7758
- issuerIdentifier: string;
7759
- keyIdentifier: string;
7760
- name?: string | null;
7761
- roles?: Array<AppStoreConnectUserRole> | null;
7762
- createdAt: any;
7763
- updatedAt: any;
7764
- appleTeam?: {
7765
- __typename?: 'AppleTeam';
7766
- id: string;
7767
- appleTeamIdentifier: string;
7768
- appleTeamName?: string | null;
7769
- } | null;
7770
- }>;
7819
+ appStoreConnectApiKeysPaginated: {
7820
+ __typename?: 'AccountAppStoreConnectApiKeysConnection';
7821
+ edges: Array<{
7822
+ __typename?: 'AccountAppStoreConnectApiKeysEdge';
7823
+ cursor: string;
7824
+ node: {
7825
+ __typename?: 'AppStoreConnectApiKey';
7826
+ id: string;
7827
+ issuerIdentifier: string;
7828
+ keyIdentifier: string;
7829
+ name?: string | null;
7830
+ roles?: Array<AppStoreConnectUserRole> | null;
7831
+ createdAt: any;
7832
+ updatedAt: any;
7833
+ appleTeam?: {
7834
+ __typename?: 'AppleTeam';
7835
+ id: string;
7836
+ appleTeamIdentifier: string;
7837
+ appleTeamName?: string | null;
7838
+ } | null;
7839
+ };
7840
+ }>;
7841
+ pageInfo: {
7842
+ __typename?: 'PageInfo';
7843
+ hasNextPage: boolean;
7844
+ hasPreviousPage: boolean;
7845
+ startCursor?: string | null;
7846
+ endCursor?: string | null;
7847
+ };
7848
+ };
7771
7849
  };
7772
7850
  };
7773
7851
  };
@@ -7790,37 +7868,6 @@ export type AppleAppIdentifierByBundleIdQuery = {
7790
7868
  };
7791
7869
  };
7792
7870
  };
7793
- export type AppleDevicesByAppleTeamQueryVariables = Exact<{
7794
- accountId: Scalars['ID']['input'];
7795
- appleTeamIdentifier: Scalars['String']['input'];
7796
- }>;
7797
- export type AppleDevicesByAppleTeamQuery = {
7798
- __typename?: 'RootQuery';
7799
- appleTeam: {
7800
- __typename?: 'AppleTeamQuery';
7801
- byAppleTeamIdentifier?: {
7802
- __typename?: 'AppleTeam';
7803
- id: string;
7804
- appleTeamIdentifier: string;
7805
- appleTeamName?: string | null;
7806
- appleDevices: Array<{
7807
- __typename?: 'AppleDevice';
7808
- id: string;
7809
- identifier: string;
7810
- name?: string | null;
7811
- model?: string | null;
7812
- deviceClass?: AppleDeviceClass | null;
7813
- createdAt: any;
7814
- appleTeam: {
7815
- __typename?: 'AppleTeam';
7816
- id: string;
7817
- appleTeamIdentifier: string;
7818
- appleTeamName?: string | null;
7819
- };
7820
- }>;
7821
- } | null;
7822
- };
7823
- };
7824
7871
  export type AppleDevicesByTeamIdentifierQueryVariables = Exact<{
7825
7872
  accountName: Scalars['String']['input'];
7826
7873
  appleTeamIdentifier: Scalars['String']['input'];
@@ -7853,32 +7900,50 @@ export type AppleDevicesByTeamIdentifierQuery = {
7853
7900
  };
7854
7901
  };
7855
7902
  };
7856
- export type AppleDevicesByIdentifierQueryVariables = Exact<{
7903
+ export type AppleDevicesPaginatedByAccountQueryVariables = Exact<{
7857
7904
  accountName: Scalars['String']['input'];
7858
- identifier: Scalars['String']['input'];
7905
+ after?: InputMaybe<Scalars['String']['input']>;
7906
+ first?: InputMaybe<Scalars['Int']['input']>;
7907
+ before?: InputMaybe<Scalars['String']['input']>;
7908
+ last?: InputMaybe<Scalars['Int']['input']>;
7909
+ filter?: InputMaybe<AppleDeviceFilterInput>;
7859
7910
  }>;
7860
- export type AppleDevicesByIdentifierQuery = {
7911
+ export type AppleDevicesPaginatedByAccountQuery = {
7861
7912
  __typename?: 'RootQuery';
7862
7913
  account: {
7863
7914
  __typename?: 'AccountQuery';
7864
7915
  byName: {
7865
7916
  __typename?: 'Account';
7866
7917
  id: string;
7867
- appleDevices: Array<{
7868
- __typename?: 'AppleDevice';
7869
- id: string;
7870
- model?: string | null;
7871
- identifier: string;
7872
- name?: string | null;
7873
- deviceClass?: AppleDeviceClass | null;
7874
- enabled?: boolean | null;
7875
- appleTeam: {
7876
- __typename?: 'AppleTeam';
7877
- id: string;
7878
- appleTeamIdentifier: string;
7879
- appleTeamName?: string | null;
7918
+ appleDevicesPaginated: {
7919
+ __typename?: 'AccountAppleDevicesConnection';
7920
+ edges: Array<{
7921
+ __typename?: 'AccountAppleDevicesEdge';
7922
+ cursor: string;
7923
+ node: {
7924
+ __typename?: 'AppleDevice';
7925
+ id: string;
7926
+ identifier: string;
7927
+ name?: string | null;
7928
+ model?: string | null;
7929
+ deviceClass?: AppleDeviceClass | null;
7930
+ createdAt: any;
7931
+ appleTeam: {
7932
+ __typename?: 'AppleTeam';
7933
+ id: string;
7934
+ appleTeamIdentifier: string;
7935
+ appleTeamName?: string | null;
7936
+ };
7937
+ };
7938
+ }>;
7939
+ pageInfo: {
7940
+ __typename?: 'PageInfo';
7941
+ hasNextPage: boolean;
7942
+ hasPreviousPage: boolean;
7943
+ startCursor?: string | null;
7944
+ endCursor?: string | null;
7880
7945
  };
7881
- }>;
7946
+ };
7882
7947
  };
7883
7948
  };
7884
7949
  };
@@ -7974,85 +8039,103 @@ export type AppleDistributionCertificateByAppQuery = {
7974
8039
  };
7975
8040
  };
7976
8041
  };
7977
- export type AppleDistributionCertificateByAccountQueryVariables = Exact<{
8042
+ export type AppleDistributionCertificatesPaginatedByAccountQueryVariables = Exact<{
7978
8043
  accountName: Scalars['String']['input'];
8044
+ after?: InputMaybe<Scalars['String']['input']>;
8045
+ first?: InputMaybe<Scalars['Int']['input']>;
8046
+ before?: InputMaybe<Scalars['String']['input']>;
8047
+ last?: InputMaybe<Scalars['Int']['input']>;
7979
8048
  }>;
7980
- export type AppleDistributionCertificateByAccountQuery = {
8049
+ export type AppleDistributionCertificatesPaginatedByAccountQuery = {
7981
8050
  __typename?: 'RootQuery';
7982
8051
  account: {
7983
8052
  __typename?: 'AccountQuery';
7984
8053
  byName: {
7985
8054
  __typename?: 'Account';
7986
8055
  id: string;
7987
- appleDistributionCertificates: Array<{
7988
- __typename?: 'AppleDistributionCertificate';
7989
- id: string;
7990
- certificateP12?: string | null;
7991
- certificatePassword?: string | null;
7992
- serialNumber: string;
7993
- developerPortalIdentifier?: string | null;
7994
- validityNotBefore: any;
7995
- validityNotAfter: any;
7996
- updatedAt: any;
7997
- appleTeam?: {
7998
- __typename?: 'AppleTeam';
7999
- id: string;
8000
- appleTeamIdentifier: string;
8001
- appleTeamName?: string | null;
8002
- } | null;
8003
- iosAppBuildCredentialsList: Array<{
8004
- __typename?: 'IosAppBuildCredentials';
8005
- id: string;
8006
- iosAppCredentials: {
8007
- __typename?: 'IosAppCredentials';
8056
+ appleDistributionCertificatesPaginated: {
8057
+ __typename?: 'AccountAppleDistributionCertificatesConnection';
8058
+ edges: Array<{
8059
+ __typename?: 'AccountAppleDistributionCertificatesEdge';
8060
+ cursor: string;
8061
+ node: {
8062
+ __typename?: 'AppleDistributionCertificate';
8008
8063
  id: string;
8009
- app: {
8010
- __typename?: 'App';
8064
+ certificateP12?: string | null;
8065
+ certificatePassword?: string | null;
8066
+ serialNumber: string;
8067
+ developerPortalIdentifier?: string | null;
8068
+ validityNotBefore: any;
8069
+ validityNotAfter: any;
8070
+ updatedAt: any;
8071
+ appleTeam?: {
8072
+ __typename?: 'AppleTeam';
8011
8073
  id: string;
8012
- fullName: string;
8013
- slug: string;
8014
- ownerAccount: {
8015
- __typename?: 'Account';
8074
+ appleTeamIdentifier: string;
8075
+ appleTeamName?: string | null;
8076
+ } | null;
8077
+ iosAppBuildCredentialsList: Array<{
8078
+ __typename?: 'IosAppBuildCredentials';
8079
+ id: string;
8080
+ iosAppCredentials: {
8081
+ __typename?: 'IosAppCredentials';
8016
8082
  id: string;
8017
- name: string;
8018
- ownerUserActor?: {
8019
- __typename?: 'SSOUser';
8020
- id: string;
8021
- username: string;
8022
- } | {
8023
- __typename?: 'User';
8083
+ app: {
8084
+ __typename?: 'App';
8024
8085
  id: string;
8025
- username: string;
8026
- } | null;
8027
- users: Array<{
8028
- __typename?: 'UserPermission';
8029
- role: Role;
8030
- actor: {
8031
- __typename?: 'Robot';
8032
- id: string;
8033
- } | {
8034
- __typename?: 'SSOUser';
8035
- id: string;
8036
- } | {
8037
- __typename?: 'User';
8086
+ fullName: string;
8087
+ slug: string;
8088
+ ownerAccount: {
8089
+ __typename?: 'Account';
8038
8090
  id: string;
8091
+ name: string;
8092
+ ownerUserActor?: {
8093
+ __typename?: 'SSOUser';
8094
+ id: string;
8095
+ username: string;
8096
+ } | {
8097
+ __typename?: 'User';
8098
+ id: string;
8099
+ username: string;
8100
+ } | null;
8101
+ users: Array<{
8102
+ __typename?: 'UserPermission';
8103
+ role: Role;
8104
+ actor: {
8105
+ __typename?: 'Robot';
8106
+ id: string;
8107
+ } | {
8108
+ __typename?: 'SSOUser';
8109
+ id: string;
8110
+ } | {
8111
+ __typename?: 'User';
8112
+ id: string;
8113
+ };
8114
+ }>;
8039
8115
  };
8040
- }>;
8116
+ };
8117
+ appleAppIdentifier: {
8118
+ __typename?: 'AppleAppIdentifier';
8119
+ id: string;
8120
+ bundleIdentifier: string;
8121
+ };
8041
8122
  };
8042
- };
8043
- appleAppIdentifier: {
8044
- __typename?: 'AppleAppIdentifier';
8045
- id: string;
8046
- bundleIdentifier: string;
8047
- };
8123
+ provisioningProfile?: {
8124
+ __typename?: 'AppleProvisioningProfile';
8125
+ id: string;
8126
+ developerPortalIdentifier?: string | null;
8127
+ } | null;
8128
+ }>;
8048
8129
  };
8049
- provisioningProfile?: {
8050
- __typename?: 'AppleProvisioningProfile';
8051
- id: string;
8052
- developerPortalIdentifier?: string | null;
8053
- } | null;
8054
8130
  }>;
8055
- }>;
8131
+ pageInfo: {
8132
+ __typename?: 'PageInfo';
8133
+ hasNextPage: boolean;
8134
+ hasPreviousPage: boolean;
8135
+ startCursor?: string | null;
8136
+ endCursor?: string | null;
8137
+ };
8138
+ };
8056
8139
  };
8057
8140
  };
8058
8141
  };
@@ -8108,71 +8191,89 @@ export type AppleProvisioningProfilesByAppQuery = {
8108
8191
  };
8109
8192
  };
8110
8193
  };
8111
- export type ApplePushKeyByAccountQueryVariables = Exact<{
8194
+ export type ApplePushKeysPaginatedByAccountQueryVariables = Exact<{
8112
8195
  accountName: Scalars['String']['input'];
8196
+ after?: InputMaybe<Scalars['String']['input']>;
8197
+ first?: InputMaybe<Scalars['Int']['input']>;
8198
+ before?: InputMaybe<Scalars['String']['input']>;
8199
+ last?: InputMaybe<Scalars['Int']['input']>;
8113
8200
  }>;
8114
- export type ApplePushKeyByAccountQuery = {
8201
+ export type ApplePushKeysPaginatedByAccountQuery = {
8115
8202
  __typename?: 'RootQuery';
8116
8203
  account: {
8117
8204
  __typename?: 'AccountQuery';
8118
8205
  byName: {
8119
8206
  __typename?: 'Account';
8120
8207
  id: string;
8121
- applePushKeys: Array<{
8122
- __typename?: 'ApplePushKey';
8123
- id: string;
8124
- keyIdentifier: string;
8125
- updatedAt: any;
8126
- appleTeam?: {
8127
- __typename?: 'AppleTeam';
8128
- id: string;
8129
- appleTeamIdentifier: string;
8130
- appleTeamName?: string | null;
8131
- } | null;
8132
- iosAppCredentialsList: Array<{
8133
- __typename?: 'IosAppCredentials';
8134
- id: string;
8135
- app: {
8136
- __typename?: 'App';
8208
+ applePushKeysPaginated: {
8209
+ __typename?: 'AccountApplePushKeysConnection';
8210
+ edges: Array<{
8211
+ __typename?: 'AccountApplePushKeysEdge';
8212
+ cursor: string;
8213
+ node: {
8214
+ __typename?: 'ApplePushKey';
8137
8215
  id: string;
8138
- fullName: string;
8139
- slug: string;
8140
- ownerAccount: {
8141
- __typename?: 'Account';
8216
+ keyIdentifier: string;
8217
+ updatedAt: any;
8218
+ appleTeam?: {
8219
+ __typename?: 'AppleTeam';
8142
8220
  id: string;
8143
- name: string;
8144
- ownerUserActor?: {
8145
- __typename?: 'SSOUser';
8146
- id: string;
8147
- username: string;
8148
- } | {
8149
- __typename?: 'User';
8221
+ appleTeamIdentifier: string;
8222
+ appleTeamName?: string | null;
8223
+ } | null;
8224
+ iosAppCredentialsList: Array<{
8225
+ __typename?: 'IosAppCredentials';
8226
+ id: string;
8227
+ app: {
8228
+ __typename?: 'App';
8150
8229
  id: string;
8151
- username: string;
8152
- } | null;
8153
- users: Array<{
8154
- __typename?: 'UserPermission';
8155
- role: Role;
8156
- actor: {
8157
- __typename?: 'Robot';
8158
- id: string;
8159
- } | {
8160
- __typename?: 'SSOUser';
8161
- id: string;
8162
- } | {
8163
- __typename?: 'User';
8230
+ fullName: string;
8231
+ slug: string;
8232
+ ownerAccount: {
8233
+ __typename?: 'Account';
8164
8234
  id: string;
8235
+ name: string;
8236
+ ownerUserActor?: {
8237
+ __typename?: 'SSOUser';
8238
+ id: string;
8239
+ username: string;
8240
+ } | {
8241
+ __typename?: 'User';
8242
+ id: string;
8243
+ username: string;
8244
+ } | null;
8245
+ users: Array<{
8246
+ __typename?: 'UserPermission';
8247
+ role: Role;
8248
+ actor: {
8249
+ __typename?: 'Robot';
8250
+ id: string;
8251
+ } | {
8252
+ __typename?: 'SSOUser';
8253
+ id: string;
8254
+ } | {
8255
+ __typename?: 'User';
8256
+ id: string;
8257
+ };
8258
+ }>;
8165
8259
  };
8166
- }>;
8167
- };
8168
- };
8169
- appleAppIdentifier: {
8170
- __typename?: 'AppleAppIdentifier';
8171
- id: string;
8172
- bundleIdentifier: string;
8260
+ };
8261
+ appleAppIdentifier: {
8262
+ __typename?: 'AppleAppIdentifier';
8263
+ id: string;
8264
+ bundleIdentifier: string;
8265
+ };
8266
+ }>;
8173
8267
  };
8174
8268
  }>;
8175
- }>;
8269
+ pageInfo: {
8270
+ __typename?: 'PageInfo';
8271
+ hasNextPage: boolean;
8272
+ hasPreviousPage: boolean;
8273
+ startCursor?: string | null;
8274
+ endCursor?: string | null;
8275
+ };
8276
+ };
8176
8277
  };
8177
8278
  };
8178
8279
  };
@@ -486,16 +486,17 @@ async function getRuntimeVersionForPlatformAsync({ exp, platform, projectDir, vc
486
486
  }
487
487
  if (await (0, projectUtils_1.isModernExpoUpdatesCLIWithRuntimeVersionCommandSupportedAsync)(projectDir)) {
488
488
  try {
489
+ log_1.default.debug('Using expo-updates runtimeversion:resolve CLI for runtime version resolution');
490
+ const extraArgs = log_1.default.isDebug ? ['--debug'] : [];
489
491
  const resolvedRuntimeVersionJSONResult = await (0, expoUpdatesCli_1.expoUpdatesCommandAsync)(projectDir, [
490
492
  'runtimeversion:resolve',
491
493
  '--platform',
492
494
  platform,
495
+ ...extraArgs,
493
496
  ]);
494
497
  const runtimeVersionResult = JSON.parse(resolvedRuntimeVersionJSONResult);
495
- if (runtimeVersionResult.fingerprintSources) {
496
- log_1.default.debug(`Resolved fingeprint runtime version for platform "${platform}". Sources:`);
497
- log_1.default.debug(runtimeVersionResult.fingerprintSources);
498
- }
498
+ log_1.default.debug('runtimeversion:resolve output:');
499
+ log_1.default.debug(resolvedRuntimeVersionJSONResult);
499
500
  return (0, nullthrows_1.default)(runtimeVersionResult.runtimeVersion, `Unable to determine runtime version for ${platform_1.requestedPlatformDisplayNames[platform]}. ${(0, log_1.learnMore)('https://docs.expo.dev/eas-update/runtime-versions/')}`);
500
501
  }
501
502
  catch (e) {
@@ -14,16 +14,17 @@ async function resolveRuntimeVersionAsync({ exp, platform, projectDir, }) {
14
14
  return await config_plugins_1.Updates.getRuntimeVersionNullableAsync(projectDir, exp, platform);
15
15
  }
16
16
  try {
17
+ log_1.default.debug('Using expo-updates runtimeversion:resolve CLI for runtime version resolution');
18
+ const extraArgs = log_1.default.isDebug ? ['--debug'] : [];
17
19
  const resolvedRuntimeVersionJSONResult = await (0, expoUpdatesCli_1.expoUpdatesCommandAsync)(projectDir, [
18
20
  'runtimeversion:resolve',
19
21
  '--platform',
20
22
  platform,
23
+ ...extraArgs,
21
24
  ]);
22
25
  const runtimeVersionResult = JSON.parse(resolvedRuntimeVersionJSONResult);
23
- if (runtimeVersionResult.fingerprintSources) {
24
- log_1.default.debug(`Resolved fingeprint runtime version for platform "${platform}". Sources:`);
25
- log_1.default.debug(runtimeVersionResult.fingerprintSources);
26
- }
26
+ log_1.default.debug('runtimeversion:resolve output:');
27
+ log_1.default.debug(resolvedRuntimeVersionJSONResult);
27
28
  return (_a = runtimeVersionResult.runtimeVersion) !== null && _a !== void 0 ? _a : null;
28
29
  }
29
30
  catch (e) {
@@ -2,4 +2,6 @@ export declare class ExpoUpdatesCLIModuleNotFoundError extends Error {
2
2
  }
3
3
  export declare class ExpoUpdatesCLIInvalidCommandError extends Error {
4
4
  }
5
+ export declare class ExpoUpdatesCLICommandFailedError extends Error {
6
+ }
5
7
  export declare function expoUpdatesCommandAsync(projectDir: string, args: string[]): Promise<string>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.expoUpdatesCommandAsync = exports.ExpoUpdatesCLIInvalidCommandError = exports.ExpoUpdatesCLIModuleNotFoundError = void 0;
3
+ exports.expoUpdatesCommandAsync = exports.ExpoUpdatesCLICommandFailedError = exports.ExpoUpdatesCLIInvalidCommandError = exports.ExpoUpdatesCLIModuleNotFoundError = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
6
6
  const resolve_from_1 = tslib_1.__importStar(require("resolve-from"));
@@ -11,6 +11,9 @@ exports.ExpoUpdatesCLIModuleNotFoundError = ExpoUpdatesCLIModuleNotFoundError;
11
11
  class ExpoUpdatesCLIInvalidCommandError extends Error {
12
12
  }
13
13
  exports.ExpoUpdatesCLIInvalidCommandError = ExpoUpdatesCLIInvalidCommandError;
14
+ class ExpoUpdatesCLICommandFailedError extends Error {
15
+ }
16
+ exports.ExpoUpdatesCLICommandFailedError = ExpoUpdatesCLICommandFailedError;
14
17
  async function expoUpdatesCommandAsync(projectDir, args) {
15
18
  var _a;
16
19
  let expoUpdatesCli;
@@ -25,11 +28,16 @@ async function expoUpdatesCommandAsync(projectDir, args) {
25
28
  throw e;
26
29
  }
27
30
  try {
28
- return (await (0, spawn_async_1.default)(expoUpdatesCli, args)).stdout;
31
+ return (await (0, spawn_async_1.default)(expoUpdatesCli, args, { stdio: 'pipe' })).stdout;
29
32
  }
30
33
  catch (e) {
31
- if (e.stderr && typeof e.stderr === 'string' && e.stderr.includes('Invalid command')) {
32
- throw new ExpoUpdatesCLIInvalidCommandError(`The command specified by ${args} was not valid in the \`expo-updates\` CLI.`);
34
+ if (e.stderr && typeof e.stderr === 'string') {
35
+ if (e.stderr.includes('Invalid command')) {
36
+ throw new ExpoUpdatesCLIInvalidCommandError(`The command specified by ${args} was not valid in the \`expo-updates\` CLI.`);
37
+ }
38
+ else {
39
+ throw new ExpoUpdatesCLICommandFailedError(e.stderr);
40
+ }
33
41
  }
34
42
  throw e;
35
43
  }