From 376c61907b147ed393098fd788e9543ae44887bf Mon Sep 17 00:00:00 2001 From: Phil Pluckthun Date: Thu, 12 Sep 2024 17:31:56 +0100 Subject: [PATCH] Apply lints --- packages/eas-cli/src/commands/worker/deploy.ts | 15 +++++++++------ packages/eas-cli/src/worker/assets.ts | 13 ++++++------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/packages/eas-cli/src/commands/worker/deploy.ts b/packages/eas-cli/src/commands/worker/deploy.ts index f09df42a50..2902f265a1 100644 --- a/packages/eas-cli/src/commands/worker/deploy.ts +++ b/packages/eas-cli/src/commands/worker/deploy.ts @@ -4,7 +4,7 @@ import fs from 'node:fs'; import * as path from 'node:path'; import EasCommand from '../../commandUtils/EasCommand'; -import { EasNonInteractiveAndJsonFlags, EASEnvironmentFlag } from '../../commandUtils/flags'; +import { EASEnvironmentFlag, EasNonInteractiveAndJsonFlags } from '../../commandUtils/flags'; import { EnvironmentVariableEnvironment } from '../../graphql/generated'; import Log from '../../log'; import { ora } from '../../ora'; @@ -226,11 +226,14 @@ export default class WorkerDeploy extends EasCommand { let progress = ora('Preparing project').start(); try { - const manifest = await WorkerAssets.createManifestAsync({ - environment: flags.environment, - projectDir, - projectId, - }, graphqlClient); + const manifest = await WorkerAssets.createManifestAsync( + { + environment: flags.environment, + projectDir, + projectId, + }, + graphqlClient + ); assetMap = await WorkerAssets.createAssetMapAsync(distClientPath); tarPath = await WorkerAssets.packFilesIterableAsync( emitWorkerTarballAsync({ diff --git a/packages/eas-cli/src/worker/assets.ts b/packages/eas-cli/src/worker/assets.ts index 22fc80a92b..b769389d8d 100644 --- a/packages/eas-cli/src/worker/assets.ts +++ b/packages/eas-cli/src/worker/assets.ts @@ -8,8 +8,8 @@ import { pipeline } from 'node:stream/promises'; import { pack } from 'tar-stream'; import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient'; -import { EnvironmentVariablesQuery } from '../graphql/queries/EnvironmentVariablesQuery'; import { EnvironmentVariableEnvironment } from '../graphql/generated'; +import { EnvironmentVariablesQuery } from '../graphql/queries/EnvironmentVariablesQuery'; /** Returns whether a file or folder is ignored */ function isIgnoredName(name: string): boolean { @@ -105,18 +105,17 @@ interface CreateManifestParams { /** Creates a manifest configuration sent up for deployment */ export async function createManifestAsync( params: CreateManifestParams, - graphqlClient: ExpoGraphqlClient, + graphqlClient: ExpoGraphqlClient ): Promise { let env: Record; if (params.environment) { env = Object.fromEntries( - (await EnvironmentVariablesQuery.byAppIdWithSensitiveAsync( - graphqlClient, - { + ( + await EnvironmentVariablesQuery.byAppIdWithSensitiveAsync(graphqlClient, { appId: params.projectId, environment: params.environment, - } - )).map((variable) => [variable.name, variable.value ?? undefined]) + }) + ).map(variable => [variable.name, variable.value ?? undefined]) ); } else { // NOTE: This is required for the .env resolution