Skip to content

Commit

Permalink
Switch to new @expo/[email protected] API
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Jan 8, 2025
1 parent 15a64ac commit ccdabb2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/eas-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@expo/config-plugins": "9.0.12",
"@expo/eas-build-job": "1.0.156",
"@expo/eas-json": "14.3.1",
"@expo/env": "^0.4.0",
"@expo/env": "^1.0.0",
"@expo/json-file": "8.3.3",
"@expo/logger": "1.0.117",
"@expo/multipart-body-parser": "2.0.0",
Expand Down
6 changes: 2 additions & 4 deletions packages/eas-cli/src/worker/assets.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { get as getEnv } from '@expo/env';
import { parseProjectEnv } from '@expo/env';
import { Gzip, GzipOptions } from 'minizlib';
import { HashOptions, createHash, randomBytes } from 'node:crypto';
import fs, { createWriteStream } from 'node:fs';
Expand Down Expand Up @@ -114,10 +114,8 @@ export async function createManifestAsync(
params: CreateManifestParams,
graphqlClient: ExpoGraphqlClient
): Promise<CreateManifestResult> {
// NOTE: This is required for the .env resolution
process.env.NODE_ENV = 'production';
// Resolve .env file variables
const env: Record<string, string | undefined> = getEnv(params.projectDir).env;
const { env } = parseProjectEnv(params.projectDir, { mode: 'production' });
// Maybe load EAS Environment Variables (based on `--environment` arg)
let conflictingVariableNames: string[] | undefined;
if (params.environment) {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ccdabb2

Please sign in to comment.