Skip to content

Commit

Permalink
Apply lints
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Sep 13, 2024
1 parent a55f8e6 commit 376c619
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
15 changes: 9 additions & 6 deletions packages/eas-cli/src/commands/worker/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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({
Expand Down
13 changes: 6 additions & 7 deletions packages/eas-cli/src/worker/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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<Manifest> {
let env: Record<string, string | undefined>;
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
Expand Down

0 comments on commit 376c619

Please sign in to comment.