Skip to content

Commit

Permalink
[eas-cli] Add partial apple data types to task context
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Jun 23, 2022
1 parent 9cb17fa commit 97c361f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/eas-cli/src/metadata/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from 'path';
import { MetadataEvent } from '../analytics/events';
import Log from '../log';
import { confirmAsync } from '../prompts';
import { AppleData } from './apple/data';
import { AppleData, PartialAppleData } from './apple/data';
import { createAppleTasks } from './apple/tasks';
import { createAppleWriter } from './config';
import { MetadataContext, ensureMetadataAppStoreAuthenticatedAsync } from './context';
Expand Down Expand Up @@ -37,7 +37,7 @@ export async function downloadMetadataAsync(metadataCtx: MetadataContext): Promi
const errors: Error[] = [];
const config = createAppleWriter();
const tasks = createAppleTasks(metadataCtx);
const taskCtx = { app };
const taskCtx: PartialAppleData = { app };

for (const task of tasks) {
try {
Expand Down
4 changes: 2 additions & 2 deletions packages/eas-cli/src/metadata/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path';

import { MetadataEvent } from '../analytics/events';
import Log from '../log';
import { AppleData } from './apple/data';
import { AppleData, PartialAppleData } from './apple/data';
import { createAppleTasks } from './apple/tasks';
import { createAppleReader, validateConfig } from './config';
import { MetadataContext, ensureMetadataAppStoreAuthenticatedAsync } from './context';
Expand Down Expand Up @@ -36,7 +36,7 @@ export async function uploadMetadataAsync(
const errors: Error[] = [];
const config = createAppleReader(fileData);
const tasks = createAppleTasks(metadataCtx);
const taskCtx = { app };
const taskCtx: PartialAppleData = { app };

for (const task of tasks) {
try {
Expand Down

0 comments on commit 97c361f

Please sign in to comment.