eas-cli 5.9.1 → 5.9.3

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.
@@ -240,7 +240,7 @@ class UpdatePublish extends EasCommand_1.default {
240
240
  throw e;
241
241
  }
242
242
  if (jsonFlag) {
243
- (0, json_1.printJsonOnlyOutput)((0, utils_1.getUpdateGroupJsonInfo)(newUpdates));
243
+ (0, json_1.printJsonOnlyOutput)((0, utils_1.getUpdateJsonInfosForUpdates)(newUpdates));
244
244
  }
245
245
  else {
246
246
  if (new Set(newUpdates.map(update => update.group)).size > 1) {
@@ -102,7 +102,7 @@ class UpdateRollBackToEmbedded extends EasCommand_1.default {
102
102
  throw e;
103
103
  }
104
104
  if (jsonFlag) {
105
- (0, json_1.printJsonOnlyOutput)((0, utils_1.getUpdateGroupJsonInfo)(newUpdates));
105
+ (0, json_1.printJsonOnlyOutput)((0, utils_1.getUpdateJsonInfosForUpdates)(newUpdates));
106
106
  }
107
107
  else {
108
108
  if (new Set(newUpdates.map(update => update.group)).size > 1) {
@@ -18,7 +18,7 @@ class UpdateView extends EasCommand_1.default {
18
18
  }
19
19
  const updatesByGroup = await UpdateQuery_1.UpdateQuery.viewUpdateGroupAsync(graphqlClient, { groupId });
20
20
  if (jsonFlag) {
21
- (0, json_1.printJsonOnlyOutput)((0, utils_1.getUpdateGroupJsonInfo)(updatesByGroup));
21
+ (0, json_1.printJsonOnlyOutput)((0, utils_1.getUpdateJsonInfosForUpdates)(updatesByGroup));
22
22
  }
23
23
  else {
24
24
  const [updateGroupDescription] = (0, utils_1.getUpdateGroupDescriptions)([updatesByGroup]);
@@ -1,7 +1,12 @@
1
1
  import { Platform } from '@expo/eas-build-job';
2
2
  import { BuildProfile } from '@expo/eas-json';
3
+ import { Client } from '../vcs/vcs';
3
4
  export interface CustomBuildConfigMetadata {
4
5
  workflowName?: string;
5
6
  }
6
- export declare function validateCustomBuildConfigAsync(projectDir: string, profile: BuildProfile<Platform>): Promise<CustomBuildConfigMetadata | undefined>;
7
+ export declare function validateCustomBuildConfigAsync({ profile, projectDir, vcsClient, }: {
8
+ projectDir: string;
9
+ profile: BuildProfile<Platform>;
10
+ vcsClient: Client;
11
+ }): Promise<CustomBuildConfigMetadata | undefined>;
7
12
  export declare function getCustomBuildConfigPath(configFilename: string): string;
@@ -6,7 +6,7 @@ const steps_1 = require("@expo/steps");
6
6
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
7
7
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
8
8
  const path_1 = tslib_1.__importDefault(require("path"));
9
- async function validateCustomBuildConfigAsync(projectDir, profile) {
9
+ async function validateCustomBuildConfigAsync({ profile, projectDir, vcsClient, }) {
10
10
  if (!profile.config) {
11
11
  return undefined;
12
12
  }
@@ -15,6 +15,9 @@ async function validateCustomBuildConfigAsync(projectDir, profile) {
15
15
  if (!(await fs_extra_1.default.pathExists(configPath))) {
16
16
  throw new Error(`Custom build configuration file ${chalk_1.default.bold(relativeConfigPath)} does not exist.`);
17
17
  }
18
+ if (await vcsClient.isFileIgnoredAsync(relativeConfigPath)) {
19
+ throw new Error(`Custom build configuration file ${chalk_1.default.bold(relativeConfigPath)} is ignored by your version control system. Remove it from the ignore list to successfully create custom build.`);
20
+ }
18
21
  try {
19
22
  const config = await (0, steps_1.readAndValidateBuildConfigAsync)(configPath, {
20
23
  skipNamespacedFunctionsCheck: true,
@@ -49,7 +49,7 @@ export declare function truncateString(originalMessage: string, length?: number)
49
49
  export declare function formatUpdateMessage(update: FormatUpdateParameter): string;
50
50
  export declare function ensureValidVersions(exp: ExpoConfig, platform: RequestedPlatform): void;
51
51
  export declare function formatUpdateTitle(update: UpdateFragment): string;
52
- export declare function getUpdateGroupJsonInfo(updateGroups: UpdateFragment[]): UpdateJsonInfo[];
52
+ export declare function getUpdateJsonInfosForUpdates(updates: UpdateFragment[]): UpdateJsonInfo[];
53
53
  export declare function getUpdateGroupDescriptions(updateGroups: UpdateFragment[][]): FormattedUpdateGroupDescription[];
54
54
  export declare function getUpdateGroupDescriptionsWithBranch(updateGroups: UpdateFragment[][]): FormattedUpdateGroupDescriptionWithBranch[];
55
55
  export declare function getBranchDescription(branch: UpdateBranchFragment): FormattedBranchDescription;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateBuildProfileConfigMatchesProjectConfigAsync = exports.checkEASUpdateURLIsSetAsync = exports.getBranchDescription = exports.getUpdateGroupDescriptionsWithBranch = exports.getUpdateGroupDescriptions = exports.getUpdateGroupJsonInfo = exports.formatUpdateTitle = exports.ensureValidVersions = exports.formatUpdateMessage = exports.truncateString = exports.formatPlatformForUpdateGroup = exports.getPlatformsForGroup = exports.formatBranch = exports.formatUpdateGroup = exports.UPDATE_COLUMNS_WITH_BRANCH = exports.UPDATE_COLUMNS = void 0;
3
+ exports.validateBuildProfileConfigMatchesProjectConfigAsync = exports.checkEASUpdateURLIsSetAsync = exports.getBranchDescription = exports.getUpdateGroupDescriptionsWithBranch = exports.getUpdateGroupDescriptions = exports.getUpdateJsonInfosForUpdates = exports.formatUpdateTitle = exports.ensureValidVersions = exports.formatUpdateMessage = exports.truncateString = exports.formatPlatformForUpdateGroup = exports.getPlatformsForGroup = exports.formatBranch = exports.formatUpdateGroup = exports.UPDATE_COLUMNS_WITH_BRANCH = exports.UPDATE_COLUMNS = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const timeago_js_1 = require("@expo/timeago.js");
6
6
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -111,8 +111,8 @@ function formatUpdateTitle(update) {
111
111
  return `[${(0, dateformat_1.default)(createdAt, 'mmm dd HH:MM')} by ${actorName}, runtimeVersion: ${runtimeVersion}] ${message}`;
112
112
  }
113
113
  exports.formatUpdateTitle = formatUpdateTitle;
114
- function getUpdateGroupJsonInfo(updateGroups) {
115
- return updateGroups.map(update => ({
114
+ function getUpdateJsonInfosForUpdates(updates) {
115
+ return updates.map(update => ({
116
116
  id: update.id,
117
117
  createdAt: update.createdAt,
118
118
  group: update.group,
@@ -125,7 +125,7 @@ function getUpdateGroupJsonInfo(updateGroups) {
125
125
  gitCommitHash: update.gitCommitHash,
126
126
  }));
127
127
  }
128
- exports.getUpdateGroupJsonInfo = getUpdateGroupJsonInfo;
128
+ exports.getUpdateJsonInfosForUpdates = getUpdateJsonInfosForUpdates;
129
129
  function getUpdateGroupDescriptions(updateGroups) {
130
130
  return updateGroups.map(updateGroup => {
131
131
  var _a;