mirror of
https://github.com/expo/eas-cli.git
synced 2026-11-21 10:19:26 -10:00
Compare commits
25
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a8d76c02a | ||
|
|
69ab03d96e | ||
|
|
69ed426842 | ||
|
|
3ca333747f | ||
|
|
6997df3450 | ||
|
|
f939f3ceda | ||
|
|
716728a624 | ||
|
|
f8a01bade3 | ||
|
|
2cb426522d | ||
|
|
573373066d | ||
|
|
feba42f92b | ||
|
|
f373c3fc6c | ||
|
|
e1f86d779e | ||
|
|
c42a34092f | ||
|
|
ced7f924e7 | ||
|
|
93e16284ae | ||
|
|
379036a03d | ||
|
|
6035ce06ef | ||
|
|
0333fd3519 | ||
|
|
20b48326a4 | ||
|
|
199bb78b15 | ||
|
|
7e71b8eacd | ||
|
|
14bcf917a6 | ||
|
|
6ae19df305 | ||
|
|
eedc841ea6 |
No files matched your search
@@ -3,7 +3,7 @@ commentConfiguration:
|
|||||||
epilogue: 'Generated by [CodeMention](https://github.com/expo/expo/actions/workflows/codemention.yaml)'
|
epilogue: 'Generated by [CodeMention](https://github.com/expo/expo/actions/workflows/codemention.yaml)'
|
||||||
rules:
|
rules:
|
||||||
- patterns: ['**/*']
|
- patterns: ['**/*']
|
||||||
mentions: ['khamilowicz', 'sjchmiela', 'radoslawkrzemien']
|
mentions: ['khamilowicz', 'sjchmiela']
|
||||||
- patterns: ['packages/eas-cli/src/update/**']
|
- patterns: ['packages/eas-cli/src/update/**']
|
||||||
mentions: ['wschurman', 'quinlanj']
|
mentions: ['wschurman', 'quinlanj']
|
||||||
- patterns: ['packages/eas-cli/src/commands/update/**']
|
- patterns: ['packages/eas-cli/src/commands/update/**']
|
||||||
@@ -18,3 +18,7 @@ rules:
|
|||||||
mentions: ['bycedric']
|
mentions: ['bycedric']
|
||||||
- patterns: ['packages/eas-cli/src/commands/metadata/**']
|
- patterns: ['packages/eas-cli/src/commands/metadata/**']
|
||||||
mentions: ['bycedric']
|
mentions: ['bycedric']
|
||||||
|
- patterns: ['packages/eas-cli/src/worker/**']
|
||||||
|
mentions: ['kitten', 'kadikraman']
|
||||||
|
- patterns: ['packages/eas-cli/src/commands/deploy/**']
|
||||||
|
mentions: ['kitten', 'kadikraman']
|
||||||
@@ -8,10 +8,50 @@ This is the log of notable changes to EAS CLI and related packages.
|
|||||||
|
|
||||||
### 🎉 New features
|
### 🎉 New features
|
||||||
|
|
||||||
|
-- Add `--verbose-logs` flag for `build` command ([#3000](https://github.com/expo/eas-cli/pull/3000) by [@khamilowicz](https://github.com/khamilowicz))
|
||||||
|
|
||||||
|
- Add `eas-build-cache-provider` package. ([#3002](https://github.com/expo/eas-cli/pull/3002) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
||||||
|
|
||||||
### 🐛 Bug fixes
|
### 🐛 Bug fixes
|
||||||
|
|
||||||
|
- Add missing sourcemap normalization to EAS Hosting worker deployment uploads. ([#3004](https://github.com/expo/eas-cli/pull/3004) by [@kitten](https://github.com/kitten))
|
||||||
|
|
||||||
### 🧹 Chores
|
### 🧹 Chores
|
||||||
|
|
||||||
|
## [16.3.3](https://github.com/expo/eas-cli/releases/tag/v16.3.3) - 2025-04-24
|
||||||
|
|
||||||
|
### 🐛 Bug fixes
|
||||||
|
|
||||||
|
- Add `sdk-52` alias to the list or supported android images. ([#2989](https://github.com/expo/eas-cli/pull/2989) by [@kadikraman](https://github.com/kadikraman))
|
||||||
|
- Detect when expo metro config is used. ([#2996](https://github.com/expo/eas-cli/pull/2996) by [@kadikraman](https://github.com/kadikraman))
|
||||||
|
|
||||||
|
### 🧹 Chores
|
||||||
|
|
||||||
|
- upload assetmap.json when publishing update. ([#2994](https://github.com/expo/eas-cli/pull/2994) by [@quinlanj](https://github.com/quinlanj))
|
||||||
|
- Add error messages for CDN-level upload errors. ([#2998](https://github.com/expo/eas-cli/pull/2998) by [@kitten](https://github.com/kitten))
|
||||||
|
|
||||||
|
## [16.3.2](https://github.com/expo/eas-cli/releases/tag/v16.3.2) - 2025-04-17
|
||||||
|
|
||||||
|
### 🧹 Chores
|
||||||
|
|
||||||
|
- Update upload command to display build info. ([#2990](https://github.com/expo/eas-cli/pull/2990) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
||||||
|
- change launch asset file extension. ([#2991](https://github.com/expo/eas-cli/pull/2991) by [@quinlanj](https://github.com/quinlanj))
|
||||||
|
|
||||||
|
## [16.3.1](https://github.com/expo/eas-cli/releases/tag/v16.3.1) - 2025-04-11
|
||||||
|
|
||||||
|
### 🧹 Chores
|
||||||
|
|
||||||
|
- Add `--no-dev-client` flag for `build:download` command. ([#2985](https://github.com/expo/eas-cli/pull/2985) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
||||||
|
|
||||||
|
## [16.3.0](https://github.com/expo/eas-cli/releases/tag/v16.3.0) - 2025-04-09
|
||||||
|
|
||||||
|
### 🎉 New features
|
||||||
|
|
||||||
|
- Add `eas upload` command. ([#2932](https://github.com/expo/eas-cli/pull/2932), [#2981](https://github.com/expo/eas-cli/pull/2981), [#2983](https://github.com/expo/eas-cli/pull/2983) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
||||||
|
- Add `eas build:download` command. ([#2982](https://github.com/expo/eas-cli/pull/2982) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
||||||
|
|
||||||
|
## [16.2.2](https://github.com/expo/eas-cli/releases/tag/v16.2.2) - 2025-04-08
|
||||||
|
|
||||||
## [16.2.1](https://github.com/expo/eas-cli/releases/tag/v16.2.1) - 2025-04-04
|
## [16.2.1](https://github.com/expo/eas-cli/releases/tag/v16.2.1) - 2025-04-04
|
||||||
|
|
||||||
### 🧹 Chores
|
### 🧹 Chores
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"version": "16.2.2",
|
"version": "16.3.3",
|
||||||
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
|
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# eas-build-cache-provider
|
||||||
|
|
||||||
|
A build cache provider plugin for the Expo CLI
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
"name": "eas-build-cache-provider",
|
||||||
|
"description": "A build cache provider plugin for the Expo CLI",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"author": "Expo <[email protected]>",
|
||||||
|
"bugs": "https://github.com/expo/eas-cli/issues",
|
||||||
|
"dependencies": {
|
||||||
|
"@expo/config": "10.0.6",
|
||||||
|
"@babel/code-frame": "7.23.5",
|
||||||
|
"@expo/spawn-async": "^1.7.2",
|
||||||
|
"chalk": "4.1.2",
|
||||||
|
"figures": "3.2.0",
|
||||||
|
"fs-extra": "11.2.0",
|
||||||
|
"getenv": "1.0.0",
|
||||||
|
"log-symbols": "4.1.0",
|
||||||
|
"semver": "7.5.2",
|
||||||
|
"terminal-link": "2.1.1",
|
||||||
|
"tslib": "2.4.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@tsconfig/node18": "18.2.4",
|
||||||
|
"@types/babel__code-frame": "7.0.3",
|
||||||
|
"@types/fs-extra": "11.0.4",
|
||||||
|
"@types/getenv": "^1.0.0",
|
||||||
|
"memfs": "3.4.13",
|
||||||
|
"rimraf": "3.0.2",
|
||||||
|
"typescript": "5.3.3"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18.0.0"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/expo/eas-cli",
|
||||||
|
"license": "MIT",
|
||||||
|
"main": "build/index.js",
|
||||||
|
"types": "build/index.d.ts",
|
||||||
|
"repository": "expo/eas-cli",
|
||||||
|
"scripts": {
|
||||||
|
"build": "tsc --project tsconfig.build.json",
|
||||||
|
"build-allow-unused": "tsc --project tsconfig.allowUnused.json",
|
||||||
|
"watch": "yarn build --watch --preserveWatchOutput",
|
||||||
|
"watch-allow-unused": "yarn build-allow-unused --watch --preserveWatchOutput",
|
||||||
|
"typecheck": "tsc",
|
||||||
|
"prepack": "yarn rebuild",
|
||||||
|
"rebuild": "rimraf build && yarn build",
|
||||||
|
"test": "jest",
|
||||||
|
"clean": "rimraf build node_modules yarn-error.log"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"/build"
|
||||||
|
],
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public"
|
||||||
|
},
|
||||||
|
"volta": {
|
||||||
|
"node": "20.11.0",
|
||||||
|
"yarn": "1.22.21"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
module.exports = {
|
||||||
|
extends: ['universe/shared/typescript-analysis'],
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: ['*.ts', '*.d.ts'],
|
||||||
|
parserOptions: {
|
||||||
|
project: './packages/eas-build-cache-provider/tsconfig.json',
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
'@typescript-eslint/explicit-function-return-type': [
|
||||||
|
'warn',
|
||||||
|
{
|
||||||
|
allowExpressions: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
import { getPackageJson } from '@expo/config';
|
||||||
|
import { SpawnResult } from '@expo/spawn-async';
|
||||||
|
|
||||||
|
// import from '@expo/config';
|
||||||
|
type RunOptions = any;
|
||||||
|
|
||||||
|
export function isSpawnResultError(obj: any): obj is Error & SpawnResult {
|
||||||
|
return (
|
||||||
|
obj &&
|
||||||
|
'message' in obj &&
|
||||||
|
obj.status !== undefined &&
|
||||||
|
obj.stdout !== undefined &&
|
||||||
|
obj.stderr !== undefined
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function isDevClientBuild({
|
||||||
|
runOptions,
|
||||||
|
projectRoot,
|
||||||
|
}: {
|
||||||
|
runOptions: RunOptions;
|
||||||
|
projectRoot: string;
|
||||||
|
}): boolean {
|
||||||
|
if (!hasDirectDevClientDependency(projectRoot)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ('variant' in runOptions && runOptions.variant !== undefined) {
|
||||||
|
return runOptions.variant === 'debug';
|
||||||
|
}
|
||||||
|
if ('configuration' in runOptions && runOptions.configuration !== undefined) {
|
||||||
|
return runOptions.configuration === 'Debug';
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function hasDirectDevClientDependency(projectRoot: string): boolean {
|
||||||
|
const { dependencies = {}, devDependencies = {} } = getPackageJson(projectRoot);
|
||||||
|
return !!dependencies['expo-dev-client'] || !!devDependencies['expo-dev-client'];
|
||||||
|
}
|
||||||
@@ -0,0 +1,147 @@
|
|||||||
|
import { Platform } from '@expo/config';
|
||||||
|
import spawnAsync from '@expo/spawn-async';
|
||||||
|
import chalk from 'chalk';
|
||||||
|
import fs from 'fs-extra';
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
|
import { isDevClientBuild, isSpawnResultError } from './helpers';
|
||||||
|
import Log from './log';
|
||||||
|
|
||||||
|
// import from '@expo/config';
|
||||||
|
type CalculateFingerprintHashProps = any;
|
||||||
|
type RemoteBuildCachePlugin = any;
|
||||||
|
type RunOptions = any;
|
||||||
|
|
||||||
|
async function resolveRemoteBuildCacheAsync({
|
||||||
|
projectRoot,
|
||||||
|
platform,
|
||||||
|
fingerprintHash,
|
||||||
|
runOptions,
|
||||||
|
}: {
|
||||||
|
projectRoot: string;
|
||||||
|
platform: Platform;
|
||||||
|
fingerprintHash: string;
|
||||||
|
runOptions: RunOptions;
|
||||||
|
}): Promise<string | null> {
|
||||||
|
const easJsonPath = path.join(projectRoot, 'eas.json');
|
||||||
|
if (!(await fs.exists(easJsonPath))) {
|
||||||
|
Log.debug('eas.json not found, skip checking for remote builds');
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
Log.log(
|
||||||
|
chalk`{whiteBright \u203A} {bold Searching builds with matching fingerprint on EAS servers}`
|
||||||
|
);
|
||||||
|
try {
|
||||||
|
const results = await spawnAsync(
|
||||||
|
'npx',
|
||||||
|
[
|
||||||
|
'eas-cli',
|
||||||
|
'build:download',
|
||||||
|
`--platform=${platform}`,
|
||||||
|
`--fingerprint=${fingerprintHash}`,
|
||||||
|
'--non-interactive',
|
||||||
|
isDevClientBuild({ runOptions, projectRoot }) ? '--dev-client' : '--no-dev-client',
|
||||||
|
'--json',
|
||||||
|
],
|
||||||
|
{
|
||||||
|
cwd: projectRoot,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
Log.log(chalk`{whiteBright \u203A} {bold Successfully downloaded cached build}`);
|
||||||
|
// {
|
||||||
|
// "path": "/var/folders/03/lppcpcnn61q3mz5ckzmzd8w80000gn/T/eas-cli-nodejs/eas-build-run-cache/c0f9ba9c-0cf1-4c5c-8566-b28b7971050f_22f1bbfa-1c09-4b67-9e4a-721906546b58.app"
|
||||||
|
// }
|
||||||
|
const json = JSON.parse(results.stdout.trim());
|
||||||
|
return json?.path;
|
||||||
|
} catch (error) {
|
||||||
|
Log.debug('eas-cli error:', error);
|
||||||
|
// @TODO(2025-04-11): remove this in a future release
|
||||||
|
if (isSpawnResultError(error) && error.stderr.includes('command build:download not found')) {
|
||||||
|
Log.warn(
|
||||||
|
`To take advantage of remote build cache, upgrade your eas-cli installation to latest.`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function uploadEASRemoteBuildCacheAsync({
|
||||||
|
projectRoot,
|
||||||
|
platform,
|
||||||
|
fingerprintHash,
|
||||||
|
buildPath,
|
||||||
|
}: {
|
||||||
|
projectRoot: string;
|
||||||
|
runOptions: RunOptions;
|
||||||
|
platform: Platform;
|
||||||
|
fingerprintHash: string;
|
||||||
|
buildPath?: string;
|
||||||
|
}): Promise<string | null> {
|
||||||
|
const easJsonPath = path.join(projectRoot, 'eas.json');
|
||||||
|
if (!(await fs.exists(easJsonPath))) {
|
||||||
|
Log.debug('eas.json not found, skip uploading builds');
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
Log.log(chalk`{whiteBright \u203A} {bold Uploading build to remote cache}`);
|
||||||
|
const results = await spawnAsync(
|
||||||
|
'npx',
|
||||||
|
[
|
||||||
|
'eas-cli',
|
||||||
|
'upload',
|
||||||
|
`--platform=${platform}`,
|
||||||
|
`--fingerprint=${fingerprintHash}`,
|
||||||
|
buildPath ? `--build-path=${buildPath}` : '',
|
||||||
|
'--non-interactive',
|
||||||
|
'--json',
|
||||||
|
],
|
||||||
|
{
|
||||||
|
cwd: projectRoot,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
// {
|
||||||
|
// "url": "/var/folders/03/lppcpcnn61q3mz5ckzmzd8w80000gn/T/eas-cli-nodejs/eas-build-run-cache/c0f9ba9c-0cf1-4c5c-8566-b28b7971050f_22f1bbfa-1c09-4b67-9e4a-721906546b58.app"
|
||||||
|
// }
|
||||||
|
const json = JSON.parse(results.stdout.trim());
|
||||||
|
Log.log(chalk`{whiteBright \u203A} {bold Build successfully uploaded: ${json?.url}}`);
|
||||||
|
return json?.url;
|
||||||
|
} catch (error) {
|
||||||
|
Log.debug('eas-cli error:', error);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function calculateEASFingerprintHashAsync({
|
||||||
|
projectRoot,
|
||||||
|
platform,
|
||||||
|
}: CalculateFingerprintHashProps): Promise<string | null> {
|
||||||
|
// prefer using `eas fingerprint:generate` because it automatically upload sources
|
||||||
|
try {
|
||||||
|
const results = await spawnAsync(
|
||||||
|
'npx',
|
||||||
|
['eas-cli', 'fingerprint:generate', `--platform=${platform}`, '--json', '--non-interactive'],
|
||||||
|
{
|
||||||
|
cwd: projectRoot,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
// {
|
||||||
|
// "hash": "203f960b965e154b77dc31c6c42e5582e8d77196"
|
||||||
|
// }
|
||||||
|
const json = JSON.parse(results.stdout.trim());
|
||||||
|
return json?.hash;
|
||||||
|
} catch (error) {
|
||||||
|
Log.debug('eas-cli error:', error);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const EASRemoteBuildCacheProvider: RemoteBuildCachePlugin = {
|
||||||
|
resolveRemoteBuildCache: resolveRemoteBuildCacheAsync,
|
||||||
|
uploadRemoteBuildCache: uploadEASRemoteBuildCacheAsync,
|
||||||
|
calculateFingerprintHash: calculateEASFingerprintHashAsync,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default EASRemoteBuildCacheProvider;
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
import chalk from 'chalk';
|
||||||
|
import figures from 'figures';
|
||||||
|
import { boolish } from 'getenv';
|
||||||
|
import logSymbols from 'log-symbols';
|
||||||
|
import terminalLink from 'terminal-link';
|
||||||
|
|
||||||
|
type Color = (...text: string[]) => string;
|
||||||
|
|
||||||
|
export default class Log {
|
||||||
|
public static readonly isDebug = boolish('EXPO_DEBUG', false);
|
||||||
|
|
||||||
|
public static log(...args: any[]): void {
|
||||||
|
Log.consoleLog(...args);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static newLine(): void {
|
||||||
|
Log.consoleLog();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static addNewLineIfNone(): void {
|
||||||
|
if (!Log.isLastLineNewLine) {
|
||||||
|
Log.newLine();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static error(...args: any[]): void {
|
||||||
|
Log.consoleLog(...Log.withTextColor(args, chalk.red));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static warn(...args: any[]): void {
|
||||||
|
Log.consoleLog(...Log.withTextColor(args, chalk.yellow));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static debug(...args: any[]): void {
|
||||||
|
if (Log.isDebug) {
|
||||||
|
Log.consoleLog(...args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static gray(...args: any[]): void {
|
||||||
|
Log.consoleLog(...Log.withTextColor(args, chalk.gray));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static warnDeprecatedFlag(flag: string, message: string): void {
|
||||||
|
Log.warn(`› ${chalk.bold('--' + flag)} flag is deprecated. ${message}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static fail(message: string): void {
|
||||||
|
Log.log(`${chalk.red(logSymbols.error)} ${message}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static succeed(message: string): void {
|
||||||
|
Log.log(`${chalk.green(logSymbols.success)} ${message}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static withTick(...args: any[]): void {
|
||||||
|
Log.consoleLog(chalk.green(figures.tick), ...args);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static withInfo(...args: any[]): void {
|
||||||
|
Log.consoleLog(chalk.green(figures.info), ...args);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static consoleLog(...args: any[]): void {
|
||||||
|
Log.updateIsLastLineNewLine(args);
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(...args);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static withTextColor(args: any[], chalkColor: Color): string[] {
|
||||||
|
return args.map(arg => chalkColor(arg));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static isLastLineNewLine = false;
|
||||||
|
private static updateIsLastLineNewLine(args: any[]): void {
|
||||||
|
if (args.length === 0) {
|
||||||
|
Log.isLastLineNewLine = true;
|
||||||
|
} else {
|
||||||
|
const lastArg = args[args.length - 1];
|
||||||
|
if (typeof lastArg === 'string' && (lastArg === '' || lastArg.match(/[\r\n]$/))) {
|
||||||
|
Log.isLastLineNewLine = true;
|
||||||
|
} else {
|
||||||
|
Log.isLastLineNewLine = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prints a link for given URL, using text if provided, otherwise text is just the URL.
|
||||||
|
* Format links as dim (unless disabled) and with an underline.
|
||||||
|
*
|
||||||
|
* @example https://expo.dev
|
||||||
|
*/
|
||||||
|
export function link(
|
||||||
|
url: string,
|
||||||
|
{ text = url, fallback, dim = true }: { text?: string; dim?: boolean; fallback?: string } = {}
|
||||||
|
): string {
|
||||||
|
// Links can be disabled via env variables https://github.com/jamestalmage/supports-hyperlinks/blob/master/index.js
|
||||||
|
const output = terminalLink(text, url, {
|
||||||
|
fallback: () =>
|
||||||
|
fallback ?? (text === url ? chalk.underline(url) : `${text}: ${chalk.underline(url)}`),
|
||||||
|
});
|
||||||
|
return dim ? chalk.dim(output) : output;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provide a consistent "Learn more" link experience.
|
||||||
|
* Format links as dim (unless disabled) with an underline.
|
||||||
|
*
|
||||||
|
* @example Learn more: https://expo.dev
|
||||||
|
*/
|
||||||
|
export function learnMore(
|
||||||
|
url: string,
|
||||||
|
{
|
||||||
|
learnMoreMessage: maybeLearnMoreMessage,
|
||||||
|
dim = true,
|
||||||
|
}: { learnMoreMessage?: string; dim?: boolean } = {}
|
||||||
|
): string {
|
||||||
|
return link(url, { text: maybeLearnMoreMessage ?? 'Learn more', dim });
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig",
|
||||||
|
"exclude": ["**/__mocks__/*", "**/__tests__/*"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"extends": "@tsconfig/node18/tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"declaration": true,
|
||||||
|
"importHelpers": true,
|
||||||
|
"module": "commonjs",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"noImplicitOverride": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"outDir": "build",
|
||||||
|
"rootDir": "src",
|
||||||
|
"typeRoots": ["../../node_modules/@types", "../../ts-declarations", "./node_modules/@types"]
|
||||||
|
},
|
||||||
|
"include": ["src/**/*"]
|
||||||
|
}
|
||||||
+97
-75
@@ -70,6 +70,7 @@ eas --help COMMAND
|
|||||||
* [`eas build:configure`](#eas-buildconfigure)
|
* [`eas build:configure`](#eas-buildconfigure)
|
||||||
* [`eas build:delete [BUILD_ID]`](#eas-builddelete-build_id)
|
* [`eas build:delete [BUILD_ID]`](#eas-builddelete-build_id)
|
||||||
* [`eas build:dev`](#eas-builddev)
|
* [`eas build:dev`](#eas-builddev)
|
||||||
|
* [`eas build:download`](#eas-builddownload)
|
||||||
* [`eas build:inspect`](#eas-buildinspect)
|
* [`eas build:inspect`](#eas-buildinspect)
|
||||||
* [`eas build:list`](#eas-buildlist)
|
* [`eas build:list`](#eas-buildlist)
|
||||||
* [`eas build:resign`](#eas-buildresign)
|
* [`eas build:resign`](#eas-buildresign)
|
||||||
@@ -161,7 +162,7 @@ ALIASES
|
|||||||
$ eas login
|
$ eas login
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/account/login.ts)_
|
_See code: [packages/eas-cli/src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/account/login.ts)_
|
||||||
|
|
||||||
## `eas account:logout`
|
## `eas account:logout`
|
||||||
|
|
||||||
@@ -178,7 +179,7 @@ ALIASES
|
|||||||
$ eas logout
|
$ eas logout
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/account/logout.ts)_
|
_See code: [packages/eas-cli/src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/account/logout.ts)_
|
||||||
|
|
||||||
## `eas account:view`
|
## `eas account:view`
|
||||||
|
|
||||||
@@ -195,7 +196,7 @@ ALIASES
|
|||||||
$ eas whoami
|
$ eas whoami
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/account/view.ts)_
|
_See code: [packages/eas-cli/src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/account/view.ts)_
|
||||||
|
|
||||||
## `eas analytics [STATUS]`
|
## `eas analytics [STATUS]`
|
||||||
|
|
||||||
@@ -209,7 +210,7 @@ DESCRIPTION
|
|||||||
display or change analytics settings
|
display or change analytics settings
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/analytics.ts)_
|
_See code: [packages/eas-cli/src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/analytics.ts)_
|
||||||
|
|
||||||
## `eas autocomplete [SHELL]`
|
## `eas autocomplete [SHELL]`
|
||||||
|
|
||||||
@@ -261,7 +262,7 @@ DESCRIPTION
|
|||||||
create a branch
|
create a branch
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/branch/create.ts)_
|
_See code: [packages/eas-cli/src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/branch/create.ts)_
|
||||||
|
|
||||||
## `eas branch:delete [NAME]`
|
## `eas branch:delete [NAME]`
|
||||||
|
|
||||||
@@ -282,7 +283,7 @@ DESCRIPTION
|
|||||||
delete a branch
|
delete a branch
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/branch/delete.ts)_
|
_See code: [packages/eas-cli/src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/branch/delete.ts)_
|
||||||
|
|
||||||
## `eas branch:list`
|
## `eas branch:list`
|
||||||
|
|
||||||
@@ -302,7 +303,7 @@ DESCRIPTION
|
|||||||
list all branches
|
list all branches
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/branch/list.ts)_
|
_See code: [packages/eas-cli/src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/branch/list.ts)_
|
||||||
|
|
||||||
## `eas branch:rename`
|
## `eas branch:rename`
|
||||||
|
|
||||||
@@ -322,7 +323,7 @@ DESCRIPTION
|
|||||||
rename a branch
|
rename a branch
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/branch/rename.ts)_
|
_See code: [packages/eas-cli/src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/branch/rename.ts)_
|
||||||
|
|
||||||
## `eas branch:view [NAME]`
|
## `eas branch:view [NAME]`
|
||||||
|
|
||||||
@@ -345,7 +346,7 @@ DESCRIPTION
|
|||||||
view a branch
|
view a branch
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/branch/view.ts)_
|
_See code: [packages/eas-cli/src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/branch/view.ts)_
|
||||||
|
|
||||||
## `eas build`
|
## `eas build`
|
||||||
|
|
||||||
@@ -382,7 +383,7 @@ DESCRIPTION
|
|||||||
start a build
|
start a build
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/index.ts)_
|
_See code: [packages/eas-cli/src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/index.ts)_
|
||||||
|
|
||||||
## `eas build:cancel [BUILD_ID]`
|
## `eas build:cancel [BUILD_ID]`
|
||||||
|
|
||||||
@@ -401,7 +402,7 @@ DESCRIPTION
|
|||||||
cancel a build
|
cancel a build
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/cancel.ts)_
|
_See code: [packages/eas-cli/src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/cancel.ts)_
|
||||||
|
|
||||||
## `eas build:configure`
|
## `eas build:configure`
|
||||||
|
|
||||||
@@ -418,7 +419,7 @@ DESCRIPTION
|
|||||||
configure the project to support EAS Build
|
configure the project to support EAS Build
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/configure.ts)_
|
_See code: [packages/eas-cli/src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/configure.ts)_
|
||||||
|
|
||||||
## `eas build:delete [BUILD_ID]`
|
## `eas build:delete [BUILD_ID]`
|
||||||
|
|
||||||
@@ -437,7 +438,7 @@ DESCRIPTION
|
|||||||
delete a build
|
delete a build
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/delete.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/delete.ts)_
|
_See code: [packages/eas-cli/src/commands/build/delete.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/delete.ts)_
|
||||||
|
|
||||||
## `eas build:dev`
|
## `eas build:dev`
|
||||||
|
|
||||||
@@ -457,7 +458,28 @@ DESCRIPTION
|
|||||||
run dev client simulator/emulator build with matching fingerprint or create a new one
|
run dev client simulator/emulator build with matching fingerprint or create a new one
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/dev.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/dev.ts)_
|
_See code: [packages/eas-cli/src/commands/build/dev.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/dev.ts)_
|
||||||
|
|
||||||
|
## `eas build:download`
|
||||||
|
|
||||||
|
download simulator/emulator builds for a given fingerprint hash
|
||||||
|
|
||||||
|
```
|
||||||
|
USAGE
|
||||||
|
$ eas build:download --fingerprint <value> [-p ios|android] [--dev-client] [--json --non-interactive]
|
||||||
|
|
||||||
|
FLAGS
|
||||||
|
-p, --platform=(ios|android)
|
||||||
|
--[no-]dev-client Filter only dev-client builds.
|
||||||
|
--fingerprint=<value> (required) Fingerprint hash of the build to download
|
||||||
|
--json Enable JSON output, non-JSON messages will be printed to stderr.
|
||||||
|
--non-interactive Run the command in non-interactive mode.
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
download simulator/emulator builds for a given fingerprint hash
|
||||||
|
```
|
||||||
|
|
||||||
|
_See code: [packages/eas-cli/src/commands/build/download.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/download.ts)_
|
||||||
|
|
||||||
## `eas build:inspect`
|
## `eas build:inspect`
|
||||||
|
|
||||||
@@ -492,7 +514,7 @@ DESCRIPTION
|
|||||||
inspect the state of the project at specific build stages, useful for troubleshooting
|
inspect the state of the project at specific build stages, useful for troubleshooting
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/inspect.ts)_
|
_See code: [packages/eas-cli/src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/inspect.ts)_
|
||||||
|
|
||||||
## `eas build:list`
|
## `eas build:list`
|
||||||
|
|
||||||
@@ -544,7 +566,7 @@ DESCRIPTION
|
|||||||
list all builds for your project
|
list all builds for your project
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/list.ts)_
|
_See code: [packages/eas-cli/src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/list.ts)_
|
||||||
|
|
||||||
## `eas build:resign`
|
## `eas build:resign`
|
||||||
|
|
||||||
@@ -573,7 +595,7 @@ DESCRIPTION
|
|||||||
re-sign a build archive
|
re-sign a build archive
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/resign.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/resign.ts)_
|
_See code: [packages/eas-cli/src/commands/build/resign.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/resign.ts)_
|
||||||
|
|
||||||
## `eas build:run`
|
## `eas build:run`
|
||||||
|
|
||||||
@@ -599,7 +621,7 @@ DESCRIPTION
|
|||||||
run simulator/emulator builds from eas-cli
|
run simulator/emulator builds from eas-cli
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/run.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/run.ts)_
|
_See code: [packages/eas-cli/src/commands/build/run.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/run.ts)_
|
||||||
|
|
||||||
## `eas build:submit`
|
## `eas build:submit`
|
||||||
|
|
||||||
@@ -649,7 +671,7 @@ DESCRIPTION
|
|||||||
get the latest version from EAS servers
|
get the latest version from EAS servers
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/version/get.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/version/get.ts)_
|
_See code: [packages/eas-cli/src/commands/build/version/get.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/version/get.ts)_
|
||||||
|
|
||||||
## `eas build:version:set`
|
## `eas build:version:set`
|
||||||
|
|
||||||
@@ -668,7 +690,7 @@ DESCRIPTION
|
|||||||
update version of an app
|
update version of an app
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/version/set.ts)_
|
_See code: [packages/eas-cli/src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/version/set.ts)_
|
||||||
|
|
||||||
## `eas build:version:sync`
|
## `eas build:version:sync`
|
||||||
|
|
||||||
@@ -687,7 +709,7 @@ DESCRIPTION
|
|||||||
update a version in native code with a value stored on EAS servers
|
update a version in native code with a value stored on EAS servers
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/version/sync.ts)_
|
_See code: [packages/eas-cli/src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/version/sync.ts)_
|
||||||
|
|
||||||
## `eas build:view [BUILD_ID]`
|
## `eas build:view [BUILD_ID]`
|
||||||
|
|
||||||
@@ -704,7 +726,7 @@ DESCRIPTION
|
|||||||
view a build for your project
|
view a build for your project
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/build/view.ts)_
|
_See code: [packages/eas-cli/src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/build/view.ts)_
|
||||||
|
|
||||||
## `eas channel:create [NAME]`
|
## `eas channel:create [NAME]`
|
||||||
|
|
||||||
@@ -725,7 +747,7 @@ DESCRIPTION
|
|||||||
create a channel
|
create a channel
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/channel/create.ts)_
|
_See code: [packages/eas-cli/src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/channel/create.ts)_
|
||||||
|
|
||||||
## `eas channel:edit [NAME]`
|
## `eas channel:edit [NAME]`
|
||||||
|
|
||||||
@@ -747,7 +769,7 @@ DESCRIPTION
|
|||||||
point a channel at a new branch
|
point a channel at a new branch
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/channel/edit.ts)_
|
_See code: [packages/eas-cli/src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/channel/edit.ts)_
|
||||||
|
|
||||||
## `eas channel:list`
|
## `eas channel:list`
|
||||||
|
|
||||||
@@ -767,7 +789,7 @@ DESCRIPTION
|
|||||||
list all channels
|
list all channels
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/channel/list.ts)_
|
_See code: [packages/eas-cli/src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/channel/list.ts)_
|
||||||
|
|
||||||
## `eas channel:pause [NAME]`
|
## `eas channel:pause [NAME]`
|
||||||
|
|
||||||
@@ -789,7 +811,7 @@ DESCRIPTION
|
|||||||
pause a channel to stop it from sending updates
|
pause a channel to stop it from sending updates
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/channel/pause.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/channel/pause.ts)_
|
_See code: [packages/eas-cli/src/commands/channel/pause.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/channel/pause.ts)_
|
||||||
|
|
||||||
## `eas channel:resume [NAME]`
|
## `eas channel:resume [NAME]`
|
||||||
|
|
||||||
@@ -811,7 +833,7 @@ DESCRIPTION
|
|||||||
resume a channel to start sending updates
|
resume a channel to start sending updates
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/channel/resume.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/channel/resume.ts)_
|
_See code: [packages/eas-cli/src/commands/channel/resume.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/channel/resume.ts)_
|
||||||
|
|
||||||
## `eas channel:rollout [CHANNEL]`
|
## `eas channel:rollout [CHANNEL]`
|
||||||
|
|
||||||
@@ -844,7 +866,7 @@ DESCRIPTION
|
|||||||
Roll a new branch out on a channel incrementally.
|
Roll a new branch out on a channel incrementally.
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/channel/rollout.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/channel/rollout.ts)_
|
_See code: [packages/eas-cli/src/commands/channel/rollout.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/channel/rollout.ts)_
|
||||||
|
|
||||||
## `eas channel:view [NAME]`
|
## `eas channel:view [NAME]`
|
||||||
|
|
||||||
@@ -867,7 +889,7 @@ DESCRIPTION
|
|||||||
view a channel
|
view a channel
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/channel/view.ts)_
|
_See code: [packages/eas-cli/src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/channel/view.ts)_
|
||||||
|
|
||||||
## `eas config`
|
## `eas config`
|
||||||
|
|
||||||
@@ -888,7 +910,7 @@ DESCRIPTION
|
|||||||
display project configuration (app.json + eas.json)
|
display project configuration (app.json + eas.json)
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/config.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/config.ts)_
|
_See code: [packages/eas-cli/src/commands/config.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/config.ts)_
|
||||||
|
|
||||||
## `eas credentials`
|
## `eas credentials`
|
||||||
|
|
||||||
@@ -905,7 +927,7 @@ DESCRIPTION
|
|||||||
manage credentials
|
manage credentials
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/credentials/index.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/credentials/index.ts)_
|
_See code: [packages/eas-cli/src/commands/credentials/index.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/credentials/index.ts)_
|
||||||
|
|
||||||
## `eas credentials:configure-build`
|
## `eas credentials:configure-build`
|
||||||
|
|
||||||
@@ -923,7 +945,7 @@ DESCRIPTION
|
|||||||
Set up credentials for building your project.
|
Set up credentials for building your project.
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/credentials/configure-build.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/credentials/configure-build.ts)_
|
_See code: [packages/eas-cli/src/commands/credentials/configure-build.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/credentials/configure-build.ts)_
|
||||||
|
|
||||||
## `eas deploy [2m[options][22m`
|
## `eas deploy [2m[options][22m`
|
||||||
|
|
||||||
@@ -951,7 +973,7 @@ ALIASES
|
|||||||
$ eas worker:deploy
|
$ eas worker:deploy
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/deploy/index.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/deploy/index.ts)_
|
_See code: [packages/eas-cli/src/commands/deploy/index.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/deploy/index.ts)_
|
||||||
|
|
||||||
## `eas deploy:alias`
|
## `eas deploy:alias`
|
||||||
|
|
||||||
@@ -976,7 +998,7 @@ ALIASES
|
|||||||
$ eas deploy:promote
|
$ eas deploy:promote
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/deploy/alias.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/deploy/alias.ts)_
|
_See code: [packages/eas-cli/src/commands/deploy/alias.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/deploy/alias.ts)_
|
||||||
|
|
||||||
## `eas deploy:promote`
|
## `eas deploy:promote`
|
||||||
|
|
||||||
@@ -1013,7 +1035,7 @@ DESCRIPTION
|
|||||||
register new Apple Devices to use for internal distribution
|
register new Apple Devices to use for internal distribution
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/device/create.ts)_
|
_See code: [packages/eas-cli/src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/device/create.ts)_
|
||||||
|
|
||||||
## `eas device:delete`
|
## `eas device:delete`
|
||||||
|
|
||||||
@@ -1033,7 +1055,7 @@ DESCRIPTION
|
|||||||
remove a registered device from your account
|
remove a registered device from your account
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/device/delete.ts)_
|
_See code: [packages/eas-cli/src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/device/delete.ts)_
|
||||||
|
|
||||||
## `eas device:list`
|
## `eas device:list`
|
||||||
|
|
||||||
@@ -1054,7 +1076,7 @@ DESCRIPTION
|
|||||||
list all registered devices for your account
|
list all registered devices for your account
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/device/list.ts)_
|
_See code: [packages/eas-cli/src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/device/list.ts)_
|
||||||
|
|
||||||
## `eas device:rename`
|
## `eas device:rename`
|
||||||
|
|
||||||
@@ -1075,7 +1097,7 @@ DESCRIPTION
|
|||||||
rename a registered device
|
rename a registered device
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/device/rename.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/device/rename.ts)_
|
_See code: [packages/eas-cli/src/commands/device/rename.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/device/rename.ts)_
|
||||||
|
|
||||||
## `eas device:view [UDID]`
|
## `eas device:view [UDID]`
|
||||||
|
|
||||||
@@ -1089,7 +1111,7 @@ DESCRIPTION
|
|||||||
view a device for your project
|
view a device for your project
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/device/view.ts)_
|
_See code: [packages/eas-cli/src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/device/view.ts)_
|
||||||
|
|
||||||
## `eas diagnostics`
|
## `eas diagnostics`
|
||||||
|
|
||||||
@@ -1103,7 +1125,7 @@ DESCRIPTION
|
|||||||
display environment info
|
display environment info
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/diagnostics.ts)_
|
_See code: [packages/eas-cli/src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/diagnostics.ts)_
|
||||||
|
|
||||||
## `eas env:create [ENVIRONMENT]`
|
## `eas env:create [ENVIRONMENT]`
|
||||||
|
|
||||||
@@ -1132,7 +1154,7 @@ DESCRIPTION
|
|||||||
create an environment variable for the current project or account
|
create an environment variable for the current project or account
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/env/create.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/env/create.ts)_
|
_See code: [packages/eas-cli/src/commands/env/create.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/env/create.ts)_
|
||||||
|
|
||||||
## `eas env:delete [ENVIRONMENT]`
|
## `eas env:delete [ENVIRONMENT]`
|
||||||
|
|
||||||
@@ -1156,7 +1178,7 @@ DESCRIPTION
|
|||||||
delete an environment variable for the current project or account
|
delete an environment variable for the current project or account
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/env/delete.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/env/delete.ts)_
|
_See code: [packages/eas-cli/src/commands/env/delete.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/env/delete.ts)_
|
||||||
|
|
||||||
## `eas env:exec ENVIRONMENT BASH_COMMAND`
|
## `eas env:exec ENVIRONMENT BASH_COMMAND`
|
||||||
|
|
||||||
@@ -1177,7 +1199,7 @@ DESCRIPTION
|
|||||||
execute a command with environment variables from the selected environment
|
execute a command with environment variables from the selected environment
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/env/exec.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/env/exec.ts)_
|
_See code: [packages/eas-cli/src/commands/env/exec.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/env/exec.ts)_
|
||||||
|
|
||||||
## `eas env:get [ENVIRONMENT]`
|
## `eas env:get [ENVIRONMENT]`
|
||||||
|
|
||||||
@@ -1202,7 +1224,7 @@ DESCRIPTION
|
|||||||
view an environment variable for the current project or account
|
view an environment variable for the current project or account
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/env/get.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/env/get.ts)_
|
_See code: [packages/eas-cli/src/commands/env/get.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/env/get.ts)_
|
||||||
|
|
||||||
## `eas env:list [ENVIRONMENT]`
|
## `eas env:list [ENVIRONMENT]`
|
||||||
|
|
||||||
@@ -1227,7 +1249,7 @@ DESCRIPTION
|
|||||||
list environment variables for the current project or account
|
list environment variables for the current project or account
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/env/list.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/env/list.ts)_
|
_See code: [packages/eas-cli/src/commands/env/list.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/env/list.ts)_
|
||||||
|
|
||||||
## `eas env:pull [ENVIRONMENT]`
|
## `eas env:pull [ENVIRONMENT]`
|
||||||
|
|
||||||
@@ -1250,7 +1272,7 @@ DESCRIPTION
|
|||||||
pull environment variables for the selected environment to .env file
|
pull environment variables for the selected environment to .env file
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/env/pull.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/env/pull.ts)_
|
_See code: [packages/eas-cli/src/commands/env/pull.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/env/pull.ts)_
|
||||||
|
|
||||||
## `eas env:push [ENVIRONMENT]`
|
## `eas env:push [ENVIRONMENT]`
|
||||||
|
|
||||||
@@ -1271,7 +1293,7 @@ DESCRIPTION
|
|||||||
push environment variables from .env file to the selected environment
|
push environment variables from .env file to the selected environment
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/env/push.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/env/push.ts)_
|
_See code: [packages/eas-cli/src/commands/env/push.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/env/push.ts)_
|
||||||
|
|
||||||
## `eas env:update [ENVIRONMENT]`
|
## `eas env:update [ENVIRONMENT]`
|
||||||
|
|
||||||
@@ -1302,7 +1324,7 @@ DESCRIPTION
|
|||||||
update an environment variable on the current project or account
|
update an environment variable on the current project or account
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/env/update.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/env/update.ts)_
|
_See code: [packages/eas-cli/src/commands/env/update.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/env/update.ts)_
|
||||||
|
|
||||||
## `eas fingerprint:compare [HASH1] [HASH2]`
|
## `eas fingerprint:compare [HASH1] [HASH2]`
|
||||||
|
|
||||||
@@ -1347,7 +1369,7 @@ EXAMPLES
|
|||||||
$ eas fingerprint:compare <FINGERPRINT-HASH> --update-id <UPDATE-ID> # Compare fingerprint from update against provided fingerprint
|
$ eas fingerprint:compare <FINGERPRINT-HASH> --update-id <UPDATE-ID> # Compare fingerprint from update against provided fingerprint
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/fingerprint/compare.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/fingerprint/compare.ts)_
|
_See code: [packages/eas-cli/src/commands/fingerprint/compare.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/fingerprint/compare.ts)_
|
||||||
|
|
||||||
## `eas fingerprint:generate`
|
## `eas fingerprint:generate`
|
||||||
|
|
||||||
@@ -1378,7 +1400,7 @@ EXAMPLES
|
|||||||
$ eas fingerprint:generate --json --non-interactive --platform android # Output fingerprint json to stdout
|
$ eas fingerprint:generate --json --non-interactive --platform android # Output fingerprint json to stdout
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/fingerprint/generate.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/fingerprint/generate.ts)_
|
_See code: [packages/eas-cli/src/commands/fingerprint/generate.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/fingerprint/generate.ts)_
|
||||||
|
|
||||||
## `eas help [COMMAND]`
|
## `eas help [COMMAND]`
|
||||||
|
|
||||||
@@ -1486,7 +1508,7 @@ DESCRIPTION
|
|||||||
validate the local store configuration
|
validate the local store configuration
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/metadata/lint.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/metadata/lint.ts)_
|
_See code: [packages/eas-cli/src/commands/metadata/lint.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/metadata/lint.ts)_
|
||||||
|
|
||||||
## `eas metadata:pull`
|
## `eas metadata:pull`
|
||||||
|
|
||||||
@@ -1503,7 +1525,7 @@ DESCRIPTION
|
|||||||
generate the local store configuration from the app stores
|
generate the local store configuration from the app stores
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/metadata/pull.ts)_
|
_See code: [packages/eas-cli/src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/metadata/pull.ts)_
|
||||||
|
|
||||||
## `eas metadata:push`
|
## `eas metadata:push`
|
||||||
|
|
||||||
@@ -1520,7 +1542,7 @@ DESCRIPTION
|
|||||||
sync the local store configuration to the app stores
|
sync the local store configuration to the app stores
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/metadata/push.ts)_
|
_See code: [packages/eas-cli/src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/metadata/push.ts)_
|
||||||
|
|
||||||
## `eas onboarding [TARGET_PROJECT_DIRECTORY]`
|
## `eas onboarding [TARGET_PROJECT_DIRECTORY]`
|
||||||
|
|
||||||
@@ -1550,7 +1572,7 @@ DESCRIPTION
|
|||||||
open the project page in a web browser
|
open the project page in a web browser
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/open.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/open.ts)_
|
_See code: [packages/eas-cli/src/commands/open.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/open.ts)_
|
||||||
|
|
||||||
## `eas project:info`
|
## `eas project:info`
|
||||||
|
|
||||||
@@ -1564,7 +1586,7 @@ DESCRIPTION
|
|||||||
information about the current project
|
information about the current project
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/project/info.ts)_
|
_See code: [packages/eas-cli/src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/project/info.ts)_
|
||||||
|
|
||||||
## `eas project:init`
|
## `eas project:init`
|
||||||
|
|
||||||
@@ -1587,7 +1609,7 @@ ALIASES
|
|||||||
$ eas init
|
$ eas init
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/project/init.ts)_
|
_See code: [packages/eas-cli/src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/project/init.ts)_
|
||||||
|
|
||||||
## `eas project:onboarding [TARGET_PROJECT_DIRECTORY]`
|
## `eas project:onboarding [TARGET_PROJECT_DIRECTORY]`
|
||||||
|
|
||||||
@@ -1605,7 +1627,7 @@ ALIASES
|
|||||||
$ eas onboarding
|
$ eas onboarding
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/project/onboarding.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/project/onboarding.ts)_
|
_See code: [packages/eas-cli/src/commands/project/onboarding.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/project/onboarding.ts)_
|
||||||
|
|
||||||
## `eas submit`
|
## `eas submit`
|
||||||
|
|
||||||
@@ -1636,7 +1658,7 @@ ALIASES
|
|||||||
$ eas build:submit
|
$ eas build:submit
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/submit.ts)_
|
_See code: [packages/eas-cli/src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/submit.ts)_
|
||||||
|
|
||||||
## `eas update`
|
## `eas update`
|
||||||
|
|
||||||
@@ -1678,7 +1700,7 @@ DESCRIPTION
|
|||||||
publish an update group
|
publish an update group
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/update/index.ts)_
|
_See code: [packages/eas-cli/src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/update/index.ts)_
|
||||||
|
|
||||||
## `eas update:configure`
|
## `eas update:configure`
|
||||||
|
|
||||||
@@ -1698,7 +1720,7 @@ DESCRIPTION
|
|||||||
configure the project to support EAS Update
|
configure the project to support EAS Update
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/update/configure.ts)_
|
_See code: [packages/eas-cli/src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/update/configure.ts)_
|
||||||
|
|
||||||
## `eas update:delete GROUPID`
|
## `eas update:delete GROUPID`
|
||||||
|
|
||||||
@@ -1719,7 +1741,7 @@ DESCRIPTION
|
|||||||
delete all the updates in an update group
|
delete all the updates in an update group
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/update/delete.ts)_
|
_See code: [packages/eas-cli/src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/update/delete.ts)_
|
||||||
|
|
||||||
## `eas update:edit [GROUPID]`
|
## `eas update:edit [GROUPID]`
|
||||||
|
|
||||||
@@ -1743,7 +1765,7 @@ DESCRIPTION
|
|||||||
edit all the updates in an update group
|
edit all the updates in an update group
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/update/edit.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/update/edit.ts)_
|
_See code: [packages/eas-cli/src/commands/update/edit.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/update/edit.ts)_
|
||||||
|
|
||||||
## `eas update:list`
|
## `eas update:list`
|
||||||
|
|
||||||
@@ -1765,7 +1787,7 @@ DESCRIPTION
|
|||||||
view the recent updates
|
view the recent updates
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/update/list.ts)_
|
_See code: [packages/eas-cli/src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/update/list.ts)_
|
||||||
|
|
||||||
## `eas update:republish`
|
## `eas update:republish`
|
||||||
|
|
||||||
@@ -1797,7 +1819,7 @@ DESCRIPTION
|
|||||||
roll back to an existing update
|
roll back to an existing update
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/update/republish.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/update/republish.ts)_
|
_See code: [packages/eas-cli/src/commands/update/republish.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/update/republish.ts)_
|
||||||
|
|
||||||
## `eas update:roll-back-to-embedded`
|
## `eas update:roll-back-to-embedded`
|
||||||
|
|
||||||
@@ -1825,7 +1847,7 @@ DESCRIPTION
|
|||||||
roll back to the embedded update
|
roll back to the embedded update
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/update/roll-back-to-embedded.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/update/roll-back-to-embedded.ts)_
|
_See code: [packages/eas-cli/src/commands/update/roll-back-to-embedded.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/update/roll-back-to-embedded.ts)_
|
||||||
|
|
||||||
## `eas update:rollback`
|
## `eas update:rollback`
|
||||||
|
|
||||||
@@ -1845,7 +1867,7 @@ DESCRIPTION
|
|||||||
roll back to an embedded update or an existing update
|
roll back to an embedded update or an existing update
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/update/rollback.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/update/rollback.ts)_
|
_See code: [packages/eas-cli/src/commands/update/rollback.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/update/rollback.ts)_
|
||||||
|
|
||||||
## `eas update:view GROUPID`
|
## `eas update:view GROUPID`
|
||||||
|
|
||||||
@@ -1865,7 +1887,7 @@ DESCRIPTION
|
|||||||
update group details
|
update group details
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/update/view.ts)_
|
_See code: [packages/eas-cli/src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/update/view.ts)_
|
||||||
|
|
||||||
## `eas webhook:create`
|
## `eas webhook:create`
|
||||||
|
|
||||||
@@ -1886,7 +1908,7 @@ DESCRIPTION
|
|||||||
create a webhook
|
create a webhook
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/webhook/create.ts)_
|
_See code: [packages/eas-cli/src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/webhook/create.ts)_
|
||||||
|
|
||||||
## `eas webhook:delete [ID]`
|
## `eas webhook:delete [ID]`
|
||||||
|
|
||||||
@@ -1906,7 +1928,7 @@ DESCRIPTION
|
|||||||
delete a webhook
|
delete a webhook
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/webhook/delete.ts)_
|
_See code: [packages/eas-cli/src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/webhook/delete.ts)_
|
||||||
|
|
||||||
## `eas webhook:list`
|
## `eas webhook:list`
|
||||||
|
|
||||||
@@ -1924,7 +1946,7 @@ DESCRIPTION
|
|||||||
list webhooks
|
list webhooks
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/webhook/list.ts)_
|
_See code: [packages/eas-cli/src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/webhook/list.ts)_
|
||||||
|
|
||||||
## `eas webhook:update`
|
## `eas webhook:update`
|
||||||
|
|
||||||
@@ -1946,7 +1968,7 @@ DESCRIPTION
|
|||||||
update a webhook
|
update a webhook
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/webhook/update.ts)_
|
_See code: [packages/eas-cli/src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/webhook/update.ts)_
|
||||||
|
|
||||||
## `eas webhook:view ID`
|
## `eas webhook:view ID`
|
||||||
|
|
||||||
@@ -1963,7 +1985,7 @@ DESCRIPTION
|
|||||||
view a webhook
|
view a webhook
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/webhook/view.ts)_
|
_See code: [packages/eas-cli/src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/webhook/view.ts)_
|
||||||
|
|
||||||
## `eas whoami`
|
## `eas whoami`
|
||||||
|
|
||||||
@@ -2047,7 +2069,7 @@ DESCRIPTION
|
|||||||
create a new workflow configuration YAML file
|
create a new workflow configuration YAML file
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/workflow/create.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/workflow/create.ts)_
|
_See code: [packages/eas-cli/src/commands/workflow/create.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/workflow/create.ts)_
|
||||||
|
|
||||||
## `eas workflow:run [FILE]`
|
## `eas workflow:run [FILE]`
|
||||||
|
|
||||||
@@ -2067,7 +2089,7 @@ DESCRIPTION
|
|||||||
Run an EAS workflow
|
Run an EAS workflow
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/workflow/run.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/workflow/run.ts)_
|
_See code: [packages/eas-cli/src/commands/workflow/run.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/workflow/run.ts)_
|
||||||
|
|
||||||
## `eas workflow:validate PATH`
|
## `eas workflow:validate PATH`
|
||||||
|
|
||||||
@@ -2087,5 +2109,5 @@ DESCRIPTION
|
|||||||
validate a workflow configuration yaml file
|
validate a workflow configuration yaml file
|
||||||
```
|
```
|
||||||
|
|
||||||
_See code: [packages/eas-cli/src/commands/workflow/validate.ts](https://github.com/expo/eas-cli/blob/v16.2.2/packages/eas-cli/src/commands/workflow/validate.ts)_
|
_See code: [packages/eas-cli/src/commands/workflow/validate.ts](https://github.com/expo/eas-cli/blob/v16.3.3/packages/eas-cli/src/commands/workflow/validate.ts)_
|
||||||
<!-- commandsstop -->
|
<!-- commandsstop -->
|
||||||
Generated
+183
-15
@@ -17065,6 +17065,105 @@
|
|||||||
"enumValues": null,
|
"enumValues": null,
|
||||||
"possibleTypes": null
|
"possibleTypes": null
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"kind": "INPUT_OBJECT",
|
||||||
|
"name": "AssetMapGroup",
|
||||||
|
"description": null,
|
||||||
|
"fields": null,
|
||||||
|
"inputFields": [
|
||||||
|
{
|
||||||
|
"name": "android",
|
||||||
|
"description": null,
|
||||||
|
"type": {
|
||||||
|
"kind": "INPUT_OBJECT",
|
||||||
|
"name": "AssetMapSourceInput",
|
||||||
|
"ofType": null
|
||||||
|
},
|
||||||
|
"defaultValue": null,
|
||||||
|
"isDeprecated": false,
|
||||||
|
"deprecationReason": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ios",
|
||||||
|
"description": null,
|
||||||
|
"type": {
|
||||||
|
"kind": "INPUT_OBJECT",
|
||||||
|
"name": "AssetMapSourceInput",
|
||||||
|
"ofType": null
|
||||||
|
},
|
||||||
|
"defaultValue": null,
|
||||||
|
"isDeprecated": false,
|
||||||
|
"deprecationReason": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "web",
|
||||||
|
"description": null,
|
||||||
|
"type": {
|
||||||
|
"kind": "INPUT_OBJECT",
|
||||||
|
"name": "AssetMapSourceInput",
|
||||||
|
"ofType": null
|
||||||
|
},
|
||||||
|
"defaultValue": null,
|
||||||
|
"isDeprecated": false,
|
||||||
|
"deprecationReason": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"interfaces": null,
|
||||||
|
"enumValues": null,
|
||||||
|
"possibleTypes": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "INPUT_OBJECT",
|
||||||
|
"name": "AssetMapSourceInput",
|
||||||
|
"description": null,
|
||||||
|
"fields": null,
|
||||||
|
"inputFields": [
|
||||||
|
{
|
||||||
|
"name": "bucketKey",
|
||||||
|
"description": null,
|
||||||
|
"type": {
|
||||||
|
"kind": "SCALAR",
|
||||||
|
"name": "String",
|
||||||
|
"ofType": null
|
||||||
|
},
|
||||||
|
"defaultValue": null,
|
||||||
|
"isDeprecated": false,
|
||||||
|
"deprecationReason": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "type",
|
||||||
|
"description": null,
|
||||||
|
"type": {
|
||||||
|
"kind": "ENUM",
|
||||||
|
"name": "AssetMapSourceType",
|
||||||
|
"ofType": null
|
||||||
|
},
|
||||||
|
"defaultValue": null,
|
||||||
|
"isDeprecated": false,
|
||||||
|
"deprecationReason": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"interfaces": null,
|
||||||
|
"enumValues": null,
|
||||||
|
"possibleTypes": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "ENUM",
|
||||||
|
"name": "AssetMapSourceType",
|
||||||
|
"description": null,
|
||||||
|
"fields": null,
|
||||||
|
"inputFields": null,
|
||||||
|
"interfaces": null,
|
||||||
|
"enumValues": [
|
||||||
|
{
|
||||||
|
"name": "GCS",
|
||||||
|
"description": null,
|
||||||
|
"isDeprecated": false,
|
||||||
|
"deprecationReason": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"possibleTypes": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"kind": "OBJECT",
|
"kind": "OBJECT",
|
||||||
"name": "AssetMetadataResult",
|
"name": "AssetMetadataResult",
|
||||||
@@ -17857,6 +17956,33 @@
|
|||||||
],
|
],
|
||||||
"possibleTypes": null
|
"possibleTypes": null
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"kind": "OBJECT",
|
||||||
|
"name": "AverageMetrics",
|
||||||
|
"description": null,
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "averageDownloadSize",
|
||||||
|
"description": null,
|
||||||
|
"args": [],
|
||||||
|
"type": {
|
||||||
|
"kind": "NON_NULL",
|
||||||
|
"name": null,
|
||||||
|
"ofType": {
|
||||||
|
"kind": "SCALAR",
|
||||||
|
"name": "Int",
|
||||||
|
"ofType": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"isDeprecated": false,
|
||||||
|
"deprecationReason": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"inputFields": null,
|
||||||
|
"interfaces": [],
|
||||||
|
"enumValues": null,
|
||||||
|
"possibleTypes": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"kind": "OBJECT",
|
"kind": "OBJECT",
|
||||||
"name": "BackgroundJobReceipt",
|
"name": "BackgroundJobReceipt",
|
||||||
@@ -40514,12 +40640,6 @@
|
|||||||
"isDeprecated": false,
|
"isDeprecated": false,
|
||||||
"deprecationReason": null
|
"deprecationReason": null
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "S3",
|
|
||||||
"description": null,
|
|
||||||
"isDeprecated": false,
|
|
||||||
"deprecationReason": null
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "URL",
|
"name": "URL",
|
||||||
"description": null,
|
"description": null,
|
||||||
@@ -40701,6 +40821,18 @@
|
|||||||
"description": null,
|
"description": null,
|
||||||
"fields": null,
|
"fields": null,
|
||||||
"inputFields": [
|
"inputFields": [
|
||||||
|
{
|
||||||
|
"name": "assetMapGroup",
|
||||||
|
"description": null,
|
||||||
|
"type": {
|
||||||
|
"kind": "INPUT_OBJECT",
|
||||||
|
"name": "AssetMapGroup",
|
||||||
|
"ofType": null
|
||||||
|
},
|
||||||
|
"defaultValue": null,
|
||||||
|
"isDeprecated": false,
|
||||||
|
"deprecationReason": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "awaitingCodeSigningInfo",
|
"name": "awaitingCodeSigningInfo",
|
||||||
"description": null,
|
"description": null,
|
||||||
@@ -48549,6 +48681,18 @@
|
|||||||
"isDeprecated": false,
|
"isDeprecated": false,
|
||||||
"deprecationReason": null
|
"deprecationReason": null
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "assetMapUrl",
|
||||||
|
"description": null,
|
||||||
|
"args": [],
|
||||||
|
"type": {
|
||||||
|
"kind": "SCALAR",
|
||||||
|
"name": "String",
|
||||||
|
"ofType": null
|
||||||
|
},
|
||||||
|
"isDeprecated": false,
|
||||||
|
"deprecationReason": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "awaitingCodeSigningInfo",
|
"name": "awaitingCodeSigningInfo",
|
||||||
"description": null,
|
"description": null,
|
||||||
@@ -50464,6 +50608,22 @@
|
|||||||
"name": "UpdateInsights",
|
"name": "UpdateInsights",
|
||||||
"description": null,
|
"description": null,
|
||||||
"fields": [
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "averageMetrics",
|
||||||
|
"description": null,
|
||||||
|
"args": [],
|
||||||
|
"type": {
|
||||||
|
"kind": "NON_NULL",
|
||||||
|
"name": null,
|
||||||
|
"ofType": {
|
||||||
|
"kind": "OBJECT",
|
||||||
|
"name": "AverageMetrics",
|
||||||
|
"ofType": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"isDeprecated": false,
|
||||||
|
"deprecationReason": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "cumulativeMetrics",
|
"name": "cumulativeMetrics",
|
||||||
"description": null,
|
"description": null,
|
||||||
@@ -50587,8 +50747,8 @@
|
|||||||
"ofType": null
|
"ofType": null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"isDeprecated": false,
|
"isDeprecated": true,
|
||||||
"deprecationReason": null
|
"deprecationReason": "Use scheduleUpdateGroupDeletion instead"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "scheduleUpdateGroupDeletion",
|
"name": "scheduleUpdateGroupDeletion",
|
||||||
@@ -51236,6 +51396,12 @@
|
|||||||
"isDeprecated": false,
|
"isDeprecated": false,
|
||||||
"deprecationReason": null
|
"deprecationReason": null
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "EAS_UPDATE_ASSETS_METADATA",
|
||||||
|
"description": null,
|
||||||
|
"isDeprecated": false,
|
||||||
|
"deprecationReason": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "EAS_UPDATE_FINGERPRINT",
|
"name": "EAS_UPDATE_FINGERPRINT",
|
||||||
"description": null,
|
"description": null,
|
||||||
@@ -59764,13 +59930,9 @@
|
|||||||
"description": null,
|
"description": null,
|
||||||
"args": [],
|
"args": [],
|
||||||
"type": {
|
"type": {
|
||||||
"kind": "NON_NULL",
|
"kind": "ENUM",
|
||||||
"name": null,
|
"name": "ContinentCode",
|
||||||
"ofType": {
|
"ofType": null
|
||||||
"kind": "ENUM",
|
|
||||||
"name": "ContinentCode",
|
|
||||||
"ofType": null
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"isDeprecated": false,
|
"isDeprecated": false,
|
||||||
"deprecationReason": null
|
"deprecationReason": null
|
||||||
@@ -61336,6 +61498,12 @@
|
|||||||
"isDeprecated": false,
|
"isDeprecated": false,
|
||||||
"deprecationReason": null
|
"deprecationReason": null
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "SLACK",
|
||||||
|
"description": null,
|
||||||
|
"isDeprecated": false,
|
||||||
|
"deprecationReason": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "SUBMISSION",
|
"name": "SUBMISSION",
|
||||||
"description": null,
|
"description": null,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "eas-cli",
|
"name": "eas-cli",
|
||||||
"description": "EAS command line tool",
|
"description": "EAS command line tool",
|
||||||
"version": "16.2.2",
|
"version": "16.3.3",
|
||||||
"author": "Expo <[email protected]>",
|
"author": "Expo <[email protected]>",
|
||||||
"bin": {
|
"bin": {
|
||||||
"eas": "./bin/run"
|
"eas": "./bin/run"
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
"@expo/config": "10.0.6",
|
"@expo/config": "10.0.6",
|
||||||
"@expo/config-plugins": "9.0.12",
|
"@expo/config-plugins": "9.0.12",
|
||||||
"@expo/eas-build-job": "1.0.173",
|
"@expo/eas-build-job": "1.0.173",
|
||||||
"@expo/eas-json": "16.1.0",
|
"@expo/eas-json": "16.3.3",
|
||||||
"@expo/env": "^1.0.0",
|
"@expo/env": "^1.0.0",
|
||||||
"@expo/json-file": "8.3.3",
|
"@expo/json-file": "8.3.3",
|
||||||
"@expo/logger": "1.0.117",
|
"@expo/logger": "1.0.117",
|
||||||
|
|||||||
@@ -78,7 +78,10 @@ export async function prepareJobAsync(
|
|||||||
bun: buildProfile.bun,
|
bun: buildProfile.bun,
|
||||||
yarn: buildProfile.yarn,
|
yarn: buildProfile.yarn,
|
||||||
ndk: buildProfile.ndk,
|
ndk: buildProfile.ndk,
|
||||||
env: buildProfile.env,
|
env: {
|
||||||
|
...buildProfile.env,
|
||||||
|
...(ctx.isVerboseLoggingEnabled ? { EAS_VERBOSE: '1' } : {}),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
cache: {
|
cache: {
|
||||||
...cacheDefaults,
|
...cacheDefaults,
|
||||||
|
|||||||
@@ -63,5 +63,6 @@ export interface BuildContext<T extends Platform> {
|
|||||||
vcsClient: Client;
|
vcsClient: Client;
|
||||||
loggerLevel?: LoggerLevel;
|
loggerLevel?: LoggerLevel;
|
||||||
repack: boolean;
|
repack: boolean;
|
||||||
|
isVerboseLoggingEnabled: boolean;
|
||||||
env: Record<string, string>;
|
env: Record<string, string>;
|
||||||
}
|
}
|
||||||
@@ -43,6 +43,7 @@ export async function createBuildContextAsync<T extends Platform>({
|
|||||||
buildLoggerLevel,
|
buildLoggerLevel,
|
||||||
freezeCredentials,
|
freezeCredentials,
|
||||||
repack,
|
repack,
|
||||||
|
isVerboseLoggingEnabled,
|
||||||
env,
|
env,
|
||||||
}: {
|
}: {
|
||||||
buildProfileName: string;
|
buildProfileName: string;
|
||||||
@@ -65,6 +66,7 @@ export async function createBuildContextAsync<T extends Platform>({
|
|||||||
buildLoggerLevel?: LoggerLevel;
|
buildLoggerLevel?: LoggerLevel;
|
||||||
freezeCredentials: boolean;
|
freezeCredentials: boolean;
|
||||||
repack: boolean;
|
repack: boolean;
|
||||||
|
isVerboseLoggingEnabled: boolean;
|
||||||
env: Record<string, string>;
|
env: Record<string, string>;
|
||||||
}): Promise<BuildContext<T>> {
|
}): Promise<BuildContext<T>> {
|
||||||
const { exp, projectId } = await getDynamicPrivateProjectConfigAsync({
|
const { exp, projectId } = await getDynamicPrivateProjectConfigAsync({
|
||||||
@@ -151,6 +153,7 @@ export async function createBuildContextAsync<T extends Platform>({
|
|||||||
requiredPackageManager,
|
requiredPackageManager,
|
||||||
loggerLevel: buildLoggerLevel,
|
loggerLevel: buildLoggerLevel,
|
||||||
repack,
|
repack,
|
||||||
|
isVerboseLoggingEnabled,
|
||||||
env,
|
env,
|
||||||
};
|
};
|
||||||
if (platform === Platform.ANDROID) {
|
if (platform === Platform.ANDROID) {
|
||||||
|
|||||||
@@ -72,7 +72,10 @@ export async function prepareJobAsync(
|
|||||||
bundler: buildProfile.bundler,
|
bundler: buildProfile.bundler,
|
||||||
cocoapods: buildProfile.cocoapods,
|
cocoapods: buildProfile.cocoapods,
|
||||||
fastlane: buildProfile.fastlane,
|
fastlane: buildProfile.fastlane,
|
||||||
env: buildProfile.env,
|
env: {
|
||||||
|
...buildProfile.env,
|
||||||
|
...(ctx.isVerboseLoggingEnabled ? { EAS_VERBOSE: '1' } : {}),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
cache: {
|
cache: {
|
||||||
...cacheDefaults,
|
...cacheDefaults,
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ export interface BuildFlags {
|
|||||||
buildLoggerLevel?: LoggerLevel;
|
buildLoggerLevel?: LoggerLevel;
|
||||||
freezeCredentials: boolean;
|
freezeCredentials: boolean;
|
||||||
repack: boolean;
|
repack: boolean;
|
||||||
|
isVerboseLoggingEnabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function runBuildAndSubmitAsync({
|
export async function runBuildAndSubmitAsync({
|
||||||
@@ -401,6 +402,7 @@ async function prepareAndStartBuildAsync({
|
|||||||
buildLoggerLevel: flags.buildLoggerLevel ?? (Log.isDebug ? LoggerLevel.DEBUG : undefined),
|
buildLoggerLevel: flags.buildLoggerLevel ?? (Log.isDebug ? LoggerLevel.DEBUG : undefined),
|
||||||
freezeCredentials: flags.freezeCredentials,
|
freezeCredentials: flags.freezeCredentials,
|
||||||
repack: flags.repack,
|
repack: flags.repack,
|
||||||
|
isVerboseLoggingEnabled: flags.isVerboseLoggingEnabled ?? false,
|
||||||
env,
|
env,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,166 @@
|
|||||||
|
import { Platform } from '@expo/eas-build-job';
|
||||||
|
import { Errors, Flags } from '@oclif/core';
|
||||||
|
import chalk from 'chalk';
|
||||||
|
import { pathExists } from 'fs-extra';
|
||||||
|
|
||||||
|
import EasCommand from '../../commandUtils/EasCommand';
|
||||||
|
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
||||||
|
import { EasNonInteractiveAndJsonFlags } from '../../commandUtils/flags';
|
||||||
|
import { AppPlatform, BuildFragment, BuildStatus, DistributionType } from '../../graphql/generated';
|
||||||
|
import { BuildQuery } from '../../graphql/queries/BuildQuery';
|
||||||
|
import { toAppPlatform } from '../../graphql/types/AppPlatform';
|
||||||
|
import Log from '../../log';
|
||||||
|
import { promptAsync } from '../../prompts';
|
||||||
|
import { getEasBuildRunCachedAppPath } from '../../run/run';
|
||||||
|
import { downloadAndMaybeExtractAppAsync } from '../../utils/download';
|
||||||
|
import { enableJsonOutput, printJsonOnlyOutput } from '../../utils/json';
|
||||||
|
|
||||||
|
export default class Download extends EasCommand {
|
||||||
|
static override description = 'download simulator/emulator builds for a given fingerprint hash';
|
||||||
|
|
||||||
|
static override flags = {
|
||||||
|
fingerprint: Flags.string({
|
||||||
|
description: 'Fingerprint hash of the build to download',
|
||||||
|
required: true,
|
||||||
|
}),
|
||||||
|
platform: Flags.enum<Platform.IOS | Platform.ANDROID>({
|
||||||
|
char: 'p',
|
||||||
|
options: [Platform.IOS, Platform.ANDROID],
|
||||||
|
}),
|
||||||
|
'dev-client': Flags.boolean({
|
||||||
|
description: 'Filter only dev-client builds.',
|
||||||
|
allowNo: true,
|
||||||
|
}),
|
||||||
|
...EasNonInteractiveAndJsonFlags,
|
||||||
|
};
|
||||||
|
|
||||||
|
static override contextDefinition = {
|
||||||
|
...this.ContextOptions.LoggedIn,
|
||||||
|
...this.ContextOptions.ProjectId,
|
||||||
|
};
|
||||||
|
|
||||||
|
async runAsync(): Promise<void> {
|
||||||
|
const {
|
||||||
|
flags: {
|
||||||
|
json: jsonFlag,
|
||||||
|
platform,
|
||||||
|
fingerprint,
|
||||||
|
'dev-client': developmentClient,
|
||||||
|
'non-interactive': nonInteractive,
|
||||||
|
},
|
||||||
|
} = await this.parse(Download);
|
||||||
|
|
||||||
|
const {
|
||||||
|
loggedIn: { graphqlClient },
|
||||||
|
projectId,
|
||||||
|
} = await this.getContextAsync(Download, {
|
||||||
|
nonInteractive,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (jsonFlag) {
|
||||||
|
enableJsonOutput();
|
||||||
|
}
|
||||||
|
|
||||||
|
const selectedPlatform = await resolvePlatformAsync({ nonInteractive, platform });
|
||||||
|
const build = await this.getBuildAsync({
|
||||||
|
graphqlClient,
|
||||||
|
projectId,
|
||||||
|
platform: selectedPlatform,
|
||||||
|
fingerprintHash: fingerprint,
|
||||||
|
developmentClient,
|
||||||
|
});
|
||||||
|
const buildArtifactPath = await this.getPathToBuildArtifactAsync(build, selectedPlatform);
|
||||||
|
if (jsonFlag) {
|
||||||
|
const jsonResults = { path: buildArtifactPath };
|
||||||
|
printJsonOnlyOutput(jsonResults);
|
||||||
|
} else {
|
||||||
|
Log.log(`Build downloaded to ${chalk.bold(buildArtifactPath)}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private async getBuildAsync({
|
||||||
|
graphqlClient,
|
||||||
|
projectId,
|
||||||
|
platform,
|
||||||
|
fingerprintHash,
|
||||||
|
developmentClient,
|
||||||
|
}: {
|
||||||
|
graphqlClient: ExpoGraphqlClient;
|
||||||
|
projectId: string;
|
||||||
|
platform: AppPlatform;
|
||||||
|
fingerprintHash: string;
|
||||||
|
developmentClient: boolean;
|
||||||
|
}): Promise<BuildFragment> {
|
||||||
|
const builds = await BuildQuery.viewBuildsOnAppAsync(graphqlClient, {
|
||||||
|
appId: projectId,
|
||||||
|
filter: {
|
||||||
|
platform,
|
||||||
|
fingerprintHash,
|
||||||
|
status: BuildStatus.Finished,
|
||||||
|
simulator: platform === AppPlatform.Ios ? true : undefined,
|
||||||
|
distribution: platform === AppPlatform.Android ? DistributionType.Internal : undefined,
|
||||||
|
developmentClient,
|
||||||
|
},
|
||||||
|
offset: 0,
|
||||||
|
limit: 1,
|
||||||
|
});
|
||||||
|
if (builds.length === 0) {
|
||||||
|
throw new Errors.CLIError(
|
||||||
|
`No builds available for ${platform} with fingerprint hash ${fingerprintHash}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Log.succeed(`🎯 Found successful build with matching fingerprint on EAS servers.`);
|
||||||
|
return builds[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
async getPathToBuildArtifactAsync(build: BuildFragment, platform: AppPlatform): Promise<string> {
|
||||||
|
const cachedBuildArtifactPath = getEasBuildRunCachedAppPath(
|
||||||
|
build.project.id,
|
||||||
|
build.id,
|
||||||
|
platform
|
||||||
|
);
|
||||||
|
if (await pathExists(cachedBuildArtifactPath)) {
|
||||||
|
Log.newLine();
|
||||||
|
Log.log(`Using cached build...`);
|
||||||
|
return cachedBuildArtifactPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!build.artifacts?.applicationArchiveUrl) {
|
||||||
|
throw new Error('Build does not have an application archive url');
|
||||||
|
}
|
||||||
|
|
||||||
|
return await downloadAndMaybeExtractAppAsync(
|
||||||
|
build.artifacts.applicationArchiveUrl,
|
||||||
|
platform,
|
||||||
|
cachedBuildArtifactPath
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function resolvePlatformAsync({
|
||||||
|
nonInteractive,
|
||||||
|
platform,
|
||||||
|
}: {
|
||||||
|
nonInteractive: boolean;
|
||||||
|
platform?: Platform;
|
||||||
|
}): Promise<AppPlatform> {
|
||||||
|
if (nonInteractive && !platform) {
|
||||||
|
throw new Error('Platform must be provided in non-interactive mode');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (platform) {
|
||||||
|
return toAppPlatform(platform);
|
||||||
|
}
|
||||||
|
|
||||||
|
const { selectedPlatform } = await promptAsync({
|
||||||
|
type: 'select',
|
||||||
|
message: 'Select platform',
|
||||||
|
name: 'selectedPlatform',
|
||||||
|
choices: [
|
||||||
|
{ title: 'Android', value: AppPlatform.Android },
|
||||||
|
{ title: 'iOS', value: AppPlatform.Ios },
|
||||||
|
],
|
||||||
|
});
|
||||||
|
return selectedPlatform;
|
||||||
|
}
|
||||||
@@ -37,6 +37,7 @@ interface RawBuildFlags {
|
|||||||
message?: string;
|
message?: string;
|
||||||
'build-logger-level'?: LoggerLevel;
|
'build-logger-level'?: LoggerLevel;
|
||||||
'freeze-credentials': boolean;
|
'freeze-credentials': boolean;
|
||||||
|
'verbose-logs'?: boolean;
|
||||||
repack: boolean;
|
repack: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,6 +119,10 @@ export default class Build extends EasCommand {
|
|||||||
hidden: true,
|
hidden: true,
|
||||||
description: 'Use the golden dev client build repack flow as it works for onboarding',
|
description: 'Use the golden dev client build repack flow as it works for onboarding',
|
||||||
}),
|
}),
|
||||||
|
'verbose-logs': Flags.boolean({
|
||||||
|
default: false,
|
||||||
|
description: 'Use verbose logs for the build process',
|
||||||
|
}),
|
||||||
...EasNonInteractiveAndJsonFlags,
|
...EasNonInteractiveAndJsonFlags,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -238,6 +243,7 @@ export default class Build extends EasCommand {
|
|||||||
message,
|
message,
|
||||||
buildLoggerLevel: flags['build-logger-level'],
|
buildLoggerLevel: flags['build-logger-level'],
|
||||||
freezeCredentials: flags['freeze-credentials'],
|
freezeCredentials: flags['freeze-credentials'],
|
||||||
|
isVerboseLoggingEnabled: flags['verbose-logs'],
|
||||||
repack: flags.repack,
|
repack: flags.repack,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import { EasNonInteractiveAndJsonFlags, EasUpdateEnvironmentFlag } from '../../c
|
|||||||
import { getPaginatedQueryOptions } from '../../commandUtils/pagination';
|
import { getPaginatedQueryOptions } from '../../commandUtils/pagination';
|
||||||
import fetch from '../../fetch';
|
import fetch from '../../fetch';
|
||||||
import {
|
import {
|
||||||
|
AssetMapSourceInput,
|
||||||
EnvironmentVariableEnvironment,
|
EnvironmentVariableEnvironment,
|
||||||
FingerprintInfoGroup as GraphqlFingerprintInfoGroup,
|
FingerprintInfoGroup as GraphqlFingerprintInfoGroup,
|
||||||
PublishUpdateGroupInput,
|
PublishUpdateGroupInput,
|
||||||
@@ -26,6 +27,7 @@ import { AppQuery } from '../../graphql/queries/AppQuery';
|
|||||||
import Log, { learnMore, link } from '../../log';
|
import Log, { learnMore, link } from '../../log';
|
||||||
import { ora } from '../../ora';
|
import { ora } from '../../ora';
|
||||||
import { RequestedPlatform } from '../../platform';
|
import { RequestedPlatform } from '../../platform';
|
||||||
|
import { maybeUploadAssetMapAsync } from '../../project/maybeUploadAssetMapAsync';
|
||||||
import { maybeUploadFingerprintAsync } from '../../project/maybeUploadFingerprintAsync';
|
import { maybeUploadFingerprintAsync } from '../../project/maybeUploadFingerprintAsync';
|
||||||
import { getOwnerAccountForProjectIdAsync } from '../../project/projectUtils';
|
import { getOwnerAccountForProjectIdAsync } from '../../project/projectUtils';
|
||||||
import {
|
import {
|
||||||
@@ -271,9 +273,14 @@ export default class UpdatePublish extends EasCommand {
|
|||||||
let uploadedAssetCount = 0;
|
let uploadedAssetCount = 0;
|
||||||
let assetLimitPerUpdateGroup = 0;
|
let assetLimitPerUpdateGroup = 0;
|
||||||
let realizedPlatforms: UpdatePublishPlatform[] = [];
|
let realizedPlatforms: UpdatePublishPlatform[] = [];
|
||||||
|
let assetMapSource: AssetMapSourceInput | null = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const collectedAssets = await collectAssetsAsync(distRoot);
|
const [collectedAssets, maybeAssetMapSource] = await Promise.all([
|
||||||
|
collectAssetsAsync(distRoot),
|
||||||
|
maybeUploadAssetMapAsync(distRoot, graphqlClient),
|
||||||
|
]);
|
||||||
|
assetMapSource = maybeAssetMapSource;
|
||||||
const assets = filterCollectedAssetsByRequestedPlatforms(collectedAssets, requestedPlatform);
|
const assets = filterCollectedAssetsByRequestedPlatforms(collectedAssets, requestedPlatform);
|
||||||
realizedPlatforms = Object.keys(assets) as UpdatePublishPlatform[];
|
realizedPlatforms = Object.keys(assets) as UpdatePublishPlatform[];
|
||||||
|
|
||||||
@@ -484,11 +491,16 @@ export default class UpdatePublish extends EasCommand {
|
|||||||
{} as GraphqlFingerprintInfoGroup
|
{} as GraphqlFingerprintInfoGroup
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const assetMapGroup = assetMapSource
|
||||||
|
? Object.fromEntries(platforms.map(platform => [platform, assetMapSource]))
|
||||||
|
: null;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
branchId: branch.id,
|
branchId: branch.id,
|
||||||
updateInfoGroup: localUpdateInfoGroup,
|
updateInfoGroup: localUpdateInfoGroup,
|
||||||
rolloutInfoGroup: localRolloutInfoGroup,
|
rolloutInfoGroup: localRolloutInfoGroup,
|
||||||
fingerprintInfoGroup: transformedFingerprintInfoGroup,
|
fingerprintInfoGroup: transformedFingerprintInfoGroup,
|
||||||
|
assetMapGroup,
|
||||||
runtimeVersion,
|
runtimeVersion,
|
||||||
message: updateMessage,
|
message: updateMessage,
|
||||||
gitCommitHash,
|
gitCommitHash,
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|||||||
import { getBuildLogsUrl } from '../build/utils/url';
|
import { getBuildLogsUrl } from '../build/utils/url';
|
||||||
import EasCommand from '../commandUtils/EasCommand';
|
import EasCommand from '../commandUtils/EasCommand';
|
||||||
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
||||||
import { EASNonInteractiveFlag } from '../commandUtils/flags';
|
import { EasNonInteractiveAndJsonFlags } from '../commandUtils/flags';
|
||||||
import {
|
import {
|
||||||
DistributionType,
|
DistributionType,
|
||||||
LocalBuildArchiveSourceType,
|
LocalBuildArchiveSourceType,
|
||||||
@@ -24,6 +24,8 @@ import Log from '../log';
|
|||||||
import { promptAsync } from '../prompts';
|
import { promptAsync } from '../prompts';
|
||||||
import * as xcode from '../run/ios/xcode';
|
import * as xcode from '../run/ios/xcode';
|
||||||
import { uploadFileAtPathToGCSAsync } from '../uploads';
|
import { uploadFileAtPathToGCSAsync } from '../uploads';
|
||||||
|
import { fromNow } from '../utils/date';
|
||||||
|
import { enableJsonOutput, printJsonOnlyOutput } from '../utils/json';
|
||||||
import { getTmpDirectory } from '../utils/paths';
|
import { getTmpDirectory } from '../utils/paths';
|
||||||
import { createProgressTracker } from '../utils/progress';
|
import { createProgressTracker } from '../utils/progress';
|
||||||
|
|
||||||
@@ -42,7 +44,7 @@ export default class BuildUpload extends EasCommand {
|
|||||||
fingerprint: Flags.string({
|
fingerprint: Flags.string({
|
||||||
description: 'Fingerprint hash of the local build',
|
description: 'Fingerprint hash of the local build',
|
||||||
}),
|
}),
|
||||||
...EASNonInteractiveFlag,
|
...EasNonInteractiveAndJsonFlags,
|
||||||
};
|
};
|
||||||
|
|
||||||
static override contextDefinition = {
|
static override contextDefinition = {
|
||||||
@@ -52,16 +54,29 @@ export default class BuildUpload extends EasCommand {
|
|||||||
|
|
||||||
async runAsync(): Promise<void> {
|
async runAsync(): Promise<void> {
|
||||||
const { flags } = await this.parse(BuildUpload);
|
const { flags } = await this.parse(BuildUpload);
|
||||||
const { 'build-path': buildPath, fingerprint: manualFingerprintHash } = flags;
|
const {
|
||||||
|
'build-path': buildPath,
|
||||||
|
fingerprint: manualFingerprintHash,
|
||||||
|
json: jsonFlag,
|
||||||
|
'non-interactive': nonInteractive,
|
||||||
|
} = flags;
|
||||||
const {
|
const {
|
||||||
projectId,
|
projectId,
|
||||||
loggedIn: { graphqlClient },
|
loggedIn: { graphqlClient },
|
||||||
} = await this.getContextAsync(BuildUpload, {
|
} = await this.getContextAsync(BuildUpload, {
|
||||||
nonInteractive: false,
|
nonInteractive,
|
||||||
});
|
});
|
||||||
|
|
||||||
const platform = await this.selectPlatformAsync(flags.platform);
|
if (jsonFlag) {
|
||||||
const localBuildPath = await resolveLocalBuildPathAsync(platform, buildPath);
|
enableJsonOutput();
|
||||||
|
}
|
||||||
|
|
||||||
|
const platform = await this.selectPlatformAsync({ platform: flags.platform, nonInteractive });
|
||||||
|
const localBuildPath = await resolveLocalBuildPathAsync({
|
||||||
|
platform,
|
||||||
|
inputBuildPath: buildPath,
|
||||||
|
nonInteractive,
|
||||||
|
});
|
||||||
|
|
||||||
const {
|
const {
|
||||||
fingerprintHash: buildFingerprintHash,
|
fingerprintHash: buildFingerprintHash,
|
||||||
@@ -74,7 +89,8 @@ export default class BuildUpload extends EasCommand {
|
|||||||
if (
|
if (
|
||||||
manualFingerprintHash &&
|
manualFingerprintHash &&
|
||||||
buildFingerprintHash &&
|
buildFingerprintHash &&
|
||||||
manualFingerprintHash !== buildFingerprintHash
|
manualFingerprintHash !== buildFingerprintHash &&
|
||||||
|
!nonInteractive
|
||||||
) {
|
) {
|
||||||
const selectedAnswer = await promptAsync({
|
const selectedAnswer = await promptAsync({
|
||||||
name: 'fingerprint',
|
name: 'fingerprint',
|
||||||
@@ -107,10 +123,25 @@ export default class BuildUpload extends EasCommand {
|
|||||||
{ distribution: DistributionType.Internal, fingerprintHash: fingerprint, developmentClient }
|
{ distribution: DistributionType.Internal, fingerprintHash: fingerprint, developmentClient }
|
||||||
);
|
);
|
||||||
|
|
||||||
Log.withTick(`Here is a sharable link of your build: ${getBuildLogsUrl(build)}`);
|
if (jsonFlag) {
|
||||||
|
printJsonOnlyOutput({ url: getBuildLogsUrl(build) });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Log.withTick(`Shareable link to the build: ${getBuildLogsUrl(build)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async selectPlatformAsync(platform?: Platform): Promise<Platform> {
|
private async selectPlatformAsync({
|
||||||
|
nonInteractive,
|
||||||
|
platform,
|
||||||
|
}: {
|
||||||
|
nonInteractive: boolean;
|
||||||
|
platform?: Platform;
|
||||||
|
}): Promise<Platform> {
|
||||||
|
if (nonInteractive && !platform) {
|
||||||
|
throw new Error('Platform must be provided in non-interactive mode');
|
||||||
|
}
|
||||||
|
|
||||||
if (platform) {
|
if (platform) {
|
||||||
return platform;
|
return platform;
|
||||||
}
|
}
|
||||||
@@ -127,10 +158,15 @@ export default class BuildUpload extends EasCommand {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function resolveLocalBuildPathAsync(
|
async function resolveLocalBuildPathAsync({
|
||||||
platform: Platform,
|
platform,
|
||||||
inputBuildPath?: string
|
inputBuildPath,
|
||||||
): Promise<string> {
|
nonInteractive,
|
||||||
|
}: {
|
||||||
|
platform: Platform;
|
||||||
|
inputBuildPath?: string;
|
||||||
|
nonInteractive: boolean;
|
||||||
|
}): Promise<string> {
|
||||||
const rootDir = process.cwd();
|
const rootDir = process.cwd();
|
||||||
let applicationArchivePatternOrPath: string[] = [];
|
let applicationArchivePatternOrPath: string[] = [];
|
||||||
|
|
||||||
@@ -156,7 +192,7 @@ async function resolveLocalBuildPathAsync(
|
|||||||
patternOrPathArray: applicationArchivePatternOrPath,
|
patternOrPathArray: applicationArchivePatternOrPath,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (applicationArchives.length === 0 && !inputBuildPath) {
|
if (applicationArchives.length === 0 && !nonInteractive && !inputBuildPath) {
|
||||||
Log.warn(`No application archives found at ${applicationArchivePatternOrPath}.`);
|
Log.warn(`No application archives found at ${applicationArchivePatternOrPath}.`);
|
||||||
const { path } = await promptAsync({
|
const { path } = await promptAsync({
|
||||||
type: 'text',
|
type: 'text',
|
||||||
@@ -175,18 +211,33 @@ async function resolveLocalBuildPathAsync(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (applicationArchives.length > 1) {
|
if (applicationArchives.length > 1) {
|
||||||
const { path } = await promptAsync({
|
// sort by modification time
|
||||||
|
const applicationArchivesInfo = await Promise.all(
|
||||||
|
applicationArchives.map(async archivePath => ({
|
||||||
|
path: archivePath,
|
||||||
|
stat: await fs.stat(archivePath),
|
||||||
|
}))
|
||||||
|
);
|
||||||
|
applicationArchivesInfo.sort((a, b) => b.stat.mtimeMs - a.stat.mtimeMs);
|
||||||
|
|
||||||
|
if (nonInteractive) {
|
||||||
|
return applicationArchivesInfo[0].path;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { selectedPath } = await promptAsync({
|
||||||
type: 'select',
|
type: 'select',
|
||||||
name: 'path',
|
name: 'selectedPath',
|
||||||
message: 'Found multiple application archives. Select one:',
|
message: 'Found multiple application archives. Select one:',
|
||||||
choices: applicationArchives.map(archivePath => {
|
choices: applicationArchivesInfo.map(archive => {
|
||||||
return {
|
return {
|
||||||
title: archivePath,
|
title: `${
|
||||||
value: archivePath,
|
archive.path.startsWith(rootDir) ? path.relative(rootDir, archive.path) : archive.path
|
||||||
|
} (${fromNow(archive.stat.mtime)} ago)`,
|
||||||
|
value: archive.path,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
return path;
|
return selectedPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Error(`Found no application archives at ${inputBuildPath}.`);
|
throw new Error(`Found no application archives at ${inputBuildPath}.`);
|
||||||
|
|||||||
+40
-13
@@ -2550,6 +2550,21 @@ export type AscApiKeyInput = {
|
|||||||
keyP8: Scalars['String']['input'];
|
keyP8: Scalars['String']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type AssetMapGroup = {
|
||||||
|
android?: InputMaybe<AssetMapSourceInput>;
|
||||||
|
ios?: InputMaybe<AssetMapSourceInput>;
|
||||||
|
web?: InputMaybe<AssetMapSourceInput>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type AssetMapSourceInput = {
|
||||||
|
bucketKey?: InputMaybe<Scalars['String']['input']>;
|
||||||
|
type?: InputMaybe<AssetMapSourceType>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export enum AssetMapSourceType {
|
||||||
|
Gcs = 'GCS'
|
||||||
|
}
|
||||||
|
|
||||||
export type AssetMetadataResult = {
|
export type AssetMetadataResult = {
|
||||||
__typename?: 'AssetMetadataResult';
|
__typename?: 'AssetMetadataResult';
|
||||||
status: AssetMetadataStatus;
|
status: AssetMetadataStatus;
|
||||||
@@ -2668,6 +2683,11 @@ export enum AuthProviderIdentifier {
|
|||||||
StubIdp = 'STUB_IDP'
|
StubIdp = 'STUB_IDP'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type AverageMetrics = {
|
||||||
|
__typename?: 'AverageMetrics';
|
||||||
|
averageDownloadSize: Scalars['Int']['output'];
|
||||||
|
};
|
||||||
|
|
||||||
export type BackgroundJobReceipt = {
|
export type BackgroundJobReceipt = {
|
||||||
__typename?: 'BackgroundJobReceipt';
|
__typename?: 'BackgroundJobReceipt';
|
||||||
account: Account;
|
account: Account;
|
||||||
@@ -5818,7 +5838,6 @@ export enum ProjectArchiveSourceType {
|
|||||||
Gcs = 'GCS',
|
Gcs = 'GCS',
|
||||||
Git = 'GIT',
|
Git = 'GIT',
|
||||||
None = 'NONE',
|
None = 'NONE',
|
||||||
S3 = 'S3',
|
|
||||||
Url = 'URL'
|
Url = 'URL'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5849,6 +5868,7 @@ export type PublicArtifacts = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type PublishUpdateGroupInput = {
|
export type PublishUpdateGroupInput = {
|
||||||
|
assetMapGroup?: InputMaybe<AssetMapGroup>;
|
||||||
awaitingCodeSigningInfo?: InputMaybe<Scalars['Boolean']['input']>;
|
awaitingCodeSigningInfo?: InputMaybe<Scalars['Boolean']['input']>;
|
||||||
branchId: Scalars['String']['input'];
|
branchId: Scalars['String']['input'];
|
||||||
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
||||||
@@ -6965,6 +6985,7 @@ export type Update = ActivityTimelineProjectActivity & {
|
|||||||
activityTimestamp: Scalars['DateTime']['output'];
|
activityTimestamp: Scalars['DateTime']['output'];
|
||||||
actor?: Maybe<Actor>;
|
actor?: Maybe<Actor>;
|
||||||
app: App;
|
app: App;
|
||||||
|
assetMapUrl?: Maybe<Scalars['String']['output']>;
|
||||||
awaitingCodeSigningInfo: Scalars['Boolean']['output'];
|
awaitingCodeSigningInfo: Scalars['Boolean']['output'];
|
||||||
branch: UpdateBranch;
|
branch: UpdateBranch;
|
||||||
branchId: Scalars['ID']['output'];
|
branchId: Scalars['ID']['output'];
|
||||||
@@ -7206,6 +7227,7 @@ export type UpdateInfoGroup = {
|
|||||||
|
|
||||||
export type UpdateInsights = {
|
export type UpdateInsights = {
|
||||||
__typename?: 'UpdateInsights';
|
__typename?: 'UpdateInsights';
|
||||||
|
averageMetrics: AverageMetrics;
|
||||||
cumulativeMetrics: CumulativeMetrics;
|
cumulativeMetrics: CumulativeMetrics;
|
||||||
id: Scalars['ID']['output'];
|
id: Scalars['ID']['output'];
|
||||||
totalUniqueUsers: Scalars['Int']['output'];
|
totalUniqueUsers: Scalars['Int']['output'];
|
||||||
@@ -7223,7 +7245,10 @@ export type UpdateInsightsTotalUniqueUsersArgs = {
|
|||||||
|
|
||||||
export type UpdateMutation = {
|
export type UpdateMutation = {
|
||||||
__typename?: 'UpdateMutation';
|
__typename?: 'UpdateMutation';
|
||||||
/** Delete an EAS update group */
|
/**
|
||||||
|
* Delete an EAS update group
|
||||||
|
* @deprecated Use scheduleUpdateGroupDeletion instead
|
||||||
|
*/
|
||||||
deleteUpdateGroup: DeleteUpdateGroupResult;
|
deleteUpdateGroup: DeleteUpdateGroupResult;
|
||||||
/** Delete an EAS update group in the background */
|
/** Delete an EAS update group in the background */
|
||||||
scheduleUpdateGroupDeletion: BackgroundJobReceipt;
|
scheduleUpdateGroupDeletion: BackgroundJobReceipt;
|
||||||
@@ -7333,6 +7358,7 @@ export enum UploadSessionType {
|
|||||||
/** @deprecated Use EAS_SUBMIT_GCS_APP_ARCHIVE instead. */
|
/** @deprecated Use EAS_SUBMIT_GCS_APP_ARCHIVE instead. */
|
||||||
EasSubmitAppArchive = 'EAS_SUBMIT_APP_ARCHIVE',
|
EasSubmitAppArchive = 'EAS_SUBMIT_APP_ARCHIVE',
|
||||||
EasSubmitGcsAppArchive = 'EAS_SUBMIT_GCS_APP_ARCHIVE',
|
EasSubmitGcsAppArchive = 'EAS_SUBMIT_GCS_APP_ARCHIVE',
|
||||||
|
EasUpdateAssetsMetadata = 'EAS_UPDATE_ASSETS_METADATA',
|
||||||
EasUpdateFingerprint = 'EAS_UPDATE_FINGERPRINT'
|
EasUpdateFingerprint = 'EAS_UPDATE_FINGERPRINT'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -8434,7 +8460,7 @@ export type WorkerDeploymentRequestsCacheStatusEdge = {
|
|||||||
|
|
||||||
export type WorkerDeploymentRequestsContinentEdge = {
|
export type WorkerDeploymentRequestsContinentEdge = {
|
||||||
__typename?: 'WorkerDeploymentRequestsContinentEdge';
|
__typename?: 'WorkerDeploymentRequestsContinentEdge';
|
||||||
continent: ContinentCode;
|
continent?: Maybe<ContinentCode>;
|
||||||
node: WorkerDeploymentRequestsAggregationNode;
|
node: WorkerDeploymentRequestsAggregationNode;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -8617,6 +8643,7 @@ export enum WorkflowJobType {
|
|||||||
GetBuild = 'GET_BUILD',
|
GetBuild = 'GET_BUILD',
|
||||||
MaestroTest = 'MAESTRO_TEST',
|
MaestroTest = 'MAESTRO_TEST',
|
||||||
RequireApproval = 'REQUIRE_APPROVAL',
|
RequireApproval = 'REQUIRE_APPROVAL',
|
||||||
|
Slack = 'SLACK',
|
||||||
Submission = 'SUBMISSION',
|
Submission = 'SUBMISSION',
|
||||||
Update = 'UPDATE'
|
Update = 'UPDATE'
|
||||||
}
|
}
|
||||||
@@ -9465,6 +9492,16 @@ export type CreateKeystoreGenerationUrlMutationVariables = Exact<{ [key: string]
|
|||||||
|
|
||||||
export type CreateKeystoreGenerationUrlMutation = { __typename?: 'RootMutation', keystoreGenerationUrl: { __typename?: 'KeystoreGenerationUrlMutation', createKeystoreGenerationUrl: { __typename?: 'KeystoreGenerationUrl', id: string, url: string } } };
|
export type CreateKeystoreGenerationUrlMutation = { __typename?: 'RootMutation', keystoreGenerationUrl: { __typename?: 'KeystoreGenerationUrlMutation', createKeystoreGenerationUrl: { __typename?: 'KeystoreGenerationUrl', id: string, url: string } } };
|
||||||
|
|
||||||
|
export type CreateLocalBuildMutationVariables = Exact<{
|
||||||
|
appId: Scalars['ID']['input'];
|
||||||
|
jobInput: LocalBuildJobInput;
|
||||||
|
artifactSource: LocalBuildArchiveSourceInput;
|
||||||
|
metadata?: InputMaybe<BuildMetadataInput>;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
|
||||||
|
export type CreateLocalBuildMutation = { __typename?: 'RootMutation', build: { __typename?: 'BuildMutation', createLocalBuild: { __typename?: 'CreateBuildResult', build: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string }, metrics?: { __typename?: 'BuildMetrics', buildWaitTime?: number | null, buildQueueTime?: number | null, buildDuration?: number | null } | null } } } };
|
||||||
|
|
||||||
export type GetSignedUploadMutationVariables = Exact<{
|
export type GetSignedUploadMutationVariables = Exact<{
|
||||||
contentTypes: Array<Scalars['String']['input']> | Scalars['String']['input'];
|
contentTypes: Array<Scalars['String']['input']> | Scalars['String']['input'];
|
||||||
}>;
|
}>;
|
||||||
@@ -9495,16 +9532,6 @@ export type SetRolloutPercentageMutationVariables = Exact<{
|
|||||||
|
|
||||||
export type SetRolloutPercentageMutation = { __typename?: 'RootMutation', update: { __typename?: 'UpdateMutation', setRolloutPercentage: { __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null, fingerprint?: { __typename?: 'Fingerprint', id: string, hash: string, debugInfoUrl?: string | null, source?: { __typename?: 'FingerprintSource', type: FingerprintSourceType, bucketKey: string, isDebugFingerprint?: boolean | null } | null } | null } } };
|
export type SetRolloutPercentageMutation = { __typename?: 'RootMutation', update: { __typename?: 'UpdateMutation', setRolloutPercentage: { __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null, fingerprint?: { __typename?: 'Fingerprint', id: string, hash: string, debugInfoUrl?: string | null, source?: { __typename?: 'FingerprintSource', type: FingerprintSourceType, bucketKey: string, isDebugFingerprint?: boolean | null } | null } | null } } };
|
||||||
|
|
||||||
export type CreateLocalBuildMutationVariables = Exact<{
|
|
||||||
appId: Scalars['ID']['input'];
|
|
||||||
jobInput: LocalBuildJobInput;
|
|
||||||
artifactSource: LocalBuildArchiveSourceInput;
|
|
||||||
metadata?: InputMaybe<BuildMetadataInput>;
|
|
||||||
}>;
|
|
||||||
|
|
||||||
|
|
||||||
export type CreateLocalBuildMutation = { __typename?: 'RootMutation', build: { __typename?: 'BuildMutation', createLocalBuild: { __typename?: 'CreateBuildResult', build: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string }, metrics?: { __typename?: 'BuildMetrics', buildWaitTime?: number | null, buildQueueTime?: number | null, buildDuration?: number | null } | null } } } };
|
|
||||||
|
|
||||||
export type CreateAndroidSubmissionMutationVariables = Exact<{
|
export type CreateAndroidSubmissionMutationVariables = Exact<{
|
||||||
appId: Scalars['ID']['input'];
|
appId: Scalars['ID']['input'];
|
||||||
config: AndroidSubmissionConfigInput;
|
config: AndroidSubmissionConfigInput;
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ describe(collectAssetsAsync, () => {
|
|||||||
expect(await collectAssetsAsync(inputDir)).toEqual({
|
expect(await collectAssetsAsync(inputDir)).toEqual({
|
||||||
android: {
|
android: {
|
||||||
launchAsset: {
|
launchAsset: {
|
||||||
fileExtension: '.bundle',
|
fileExtension: '.js',
|
||||||
contentType: 'application/javascript',
|
contentType: 'application/javascript',
|
||||||
path: `${inputDir}/bundles/android.js`,
|
path: `${inputDir}/bundles/android.js`,
|
||||||
},
|
},
|
||||||
@@ -432,7 +432,7 @@ describe(collectAssetsAsync, () => {
|
|||||||
},
|
},
|
||||||
ios: {
|
ios: {
|
||||||
launchAsset: {
|
launchAsset: {
|
||||||
fileExtension: '.bundle',
|
fileExtension: '.js',
|
||||||
contentType: 'application/javascript',
|
contentType: 'application/javascript',
|
||||||
path: `${inputDir}/bundles/ios.js`,
|
path: `${inputDir}/bundles/ios.js`,
|
||||||
},
|
},
|
||||||
@@ -440,7 +440,7 @@ describe(collectAssetsAsync, () => {
|
|||||||
},
|
},
|
||||||
web: {
|
web: {
|
||||||
launchAsset: {
|
launchAsset: {
|
||||||
fileExtension: '.bundle',
|
fileExtension: '.js',
|
||||||
contentType: 'application/javascript',
|
contentType: 'application/javascript',
|
||||||
path: `${inputDir}/bundles/web.js`,
|
path: `${inputDir}/bundles/web.js`,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
import chalk from 'chalk';
|
||||||
|
import fs from 'fs-extra';
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
||||||
|
import { AssetMapSourceInput, AssetMapSourceType, UploadSessionType } from '../graphql/generated';
|
||||||
|
import Log from '../log';
|
||||||
|
import { uploadFileAtPathToGCSAsync } from '../uploads';
|
||||||
|
import { formatBytes } from '../utils/files';
|
||||||
|
import { createProgressTracker } from '../utils/progress';
|
||||||
|
|
||||||
|
export async function maybeUploadAssetMapAsync(
|
||||||
|
distRoot: string,
|
||||||
|
graphqlClient: ExpoGraphqlClient
|
||||||
|
): Promise<AssetMapSourceInput | null> {
|
||||||
|
const assetMapPath = path.join(distRoot, 'assetmap.json');
|
||||||
|
|
||||||
|
if (!(await fs.pathExists(assetMapPath))) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
let gcsBucketKey = undefined;
|
||||||
|
const fileStat = await fs.promises.stat(assetMapPath);
|
||||||
|
try {
|
||||||
|
gcsBucketKey = await uploadFileAtPathToGCSAsync(
|
||||||
|
graphqlClient,
|
||||||
|
UploadSessionType.EasUpdateAssetsMetadata,
|
||||||
|
assetMapPath,
|
||||||
|
createProgressTracker({
|
||||||
|
total: fileStat.size,
|
||||||
|
message: ratio =>
|
||||||
|
`Uploading assetmap.json (${formatBytes(fileStat.size * ratio)} / ${formatBytes(
|
||||||
|
fileStat.size
|
||||||
|
)})`,
|
||||||
|
completedMessage: (duration: string) => `Uploaded assetmap.json ${chalk.dim(duration)}`,
|
||||||
|
})
|
||||||
|
);
|
||||||
|
} catch (err: any) {
|
||||||
|
let errMessage = 'Failed to upload assetmap to EAS';
|
||||||
|
|
||||||
|
if (err.message) {
|
||||||
|
errMessage += `\n\nReason: ${err.message}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
Log.warn(errMessage);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
type: AssetMapSourceType.Gcs,
|
||||||
|
bucketKey: gcsBucketKey,
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -16,10 +16,18 @@ export async function validateMetroConfigForManagedWorkflowAsync(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const metroConfig = await loadConfigAsync(ctx.projectDir);
|
const metroConfig = await loadConfigAsync(ctx.projectDir);
|
||||||
|
|
||||||
|
// SDK <50 | plugins whose presence can be used to determine if the config is extending Expo's Metro config
|
||||||
const hasHashAssetFilesPlugin = metroConfig.transformer?.assetPlugins?.find((plugin: string) =>
|
const hasHashAssetFilesPlugin = metroConfig.transformer?.assetPlugins?.find((plugin: string) =>
|
||||||
plugin.match(/expo-asset[/|\\]tools[/|\\]hashAssetFiles/)
|
plugin.match(/expo-asset[/|\\]tools[/|\\]hashAssetFiles/)
|
||||||
);
|
);
|
||||||
if (!hasHashAssetFilesPlugin) {
|
|
||||||
|
// SDK >=51 | this is a custom property that we inject to ensure cache invalidation between projects.
|
||||||
|
const isExtendingExpoMetroConfig = metroConfig.transformer.hasOwnProperty(
|
||||||
|
'_expoRelativeProjectRoot'
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!isExtendingExpoMetroConfig && !hasHashAssetFilesPlugin) {
|
||||||
Log.warn(
|
Log.warn(
|
||||||
`It looks like that you are using a custom ${chalk.bold(
|
`It looks like that you are using a custom ${chalk.bold(
|
||||||
'metro.config.js'
|
'metro.config.js'
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ type UpdateInfoGroup = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Partial copy of `@expo/dev-server` `BundleAssetWithFileHashes`
|
// Partial copy of `@expo/dev-server` `BundleAssetWithFileHashes`
|
||||||
type AssetMap = Record<
|
export type AssetMap = Record<
|
||||||
string,
|
string,
|
||||||
{
|
{
|
||||||
httpServerLocation: string;
|
httpServerLocation: string;
|
||||||
@@ -374,7 +374,7 @@ export function filterCollectedAssetsByRequestedPlatforms(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Try to load the asset map for logging the names of assets published */
|
/** Try to load the asset map for logging the names of assets published */
|
||||||
export async function loadAssetMapAsync(distRoot: string): Promise<AssetMap | null> {
|
async function loadAssetMapAsync(distRoot: string): Promise<AssetMap | null> {
|
||||||
const assetMapPath = path.join(distRoot, 'assetmap.json');
|
const assetMapPath = path.join(distRoot, 'assetmap.json');
|
||||||
|
|
||||||
if (!(await fs.pathExists(assetMapPath))) {
|
if (!(await fs.pathExists(assetMapPath))) {
|
||||||
@@ -421,7 +421,8 @@ export async function collectAssetsAsync(dir: string): Promise<CollectedAssets>
|
|||||||
for (const platform of Object.keys(metadata.fileMetadata) as ExpoConfigPlatform[]) {
|
for (const platform of Object.keys(metadata.fileMetadata) as ExpoConfigPlatform[]) {
|
||||||
collectedAssets[platform] = {
|
collectedAssets[platform] = {
|
||||||
launchAsset: {
|
launchAsset: {
|
||||||
fileExtension: '.bundle',
|
// path.extname() returns an empty string when there's no extension so we use || to fall back to .bundle
|
||||||
|
fileExtension: path.extname(metadata.fileMetadata[platform].bundle) || '.bundle',
|
||||||
contentType: 'application/javascript',
|
contentType: 'application/javascript',
|
||||||
path: path.resolve(dir, metadata.fileMetadata[platform].bundle),
|
path: path.resolve(dir, metadata.fileMetadata[platform].bundle),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -141,6 +141,53 @@ export async function createManifestAsync(
|
|||||||
return { conflictingVariableNames, manifest };
|
return { conflictingVariableNames, manifest };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface RawSourceMap {
|
||||||
|
version: number;
|
||||||
|
sources: string[];
|
||||||
|
names: string[];
|
||||||
|
sourceRoot?: string;
|
||||||
|
sourcesContent?: string[];
|
||||||
|
mappings: string;
|
||||||
|
file: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const sourceMapExtensionRe = /\.map$/;
|
||||||
|
|
||||||
|
async function normalizeSourceMapAsync(
|
||||||
|
file: RecursiveFileEntry
|
||||||
|
): Promise<WorkerFileEntry | undefined> {
|
||||||
|
// This logic normalizes source maps like Wrangler does
|
||||||
|
// See: https://github.com/cloudflare/workers-sdk/blob/508a1a3/packages/wrangler/src/deployment-bundle/source-maps.ts#L31-L63
|
||||||
|
const data = await fs.promises.readFile(file.path, 'utf-8');
|
||||||
|
try {
|
||||||
|
const map = JSON.parse(data) as RawSourceMap;
|
||||||
|
if (typeof map !== 'object' || !map) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
let sources = map.sources || [];
|
||||||
|
if (Array.isArray(map.sources)) {
|
||||||
|
// Remote null-byte prefixes from virtual file names
|
||||||
|
sources = map.sources.map(sourceName =>
|
||||||
|
sourceName.charCodeAt(0) === 0 ? sourceName.slice(1) : sourceName
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
normalizedPath: file.normalizedPath,
|
||||||
|
path: file.path,
|
||||||
|
data: JSON.stringify({
|
||||||
|
version: 3,
|
||||||
|
file: file.normalizedPath.replace(sourceMapExtensionRe, ''),
|
||||||
|
sourcesContent: sources.map(() => null),
|
||||||
|
sources,
|
||||||
|
names: map.names,
|
||||||
|
mappings: map.mappings,
|
||||||
|
}),
|
||||||
|
};
|
||||||
|
} catch {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
interface WorkerFileEntry {
|
interface WorkerFileEntry {
|
||||||
normalizedPath: string;
|
normalizedPath: string;
|
||||||
path: string;
|
path: string;
|
||||||
@@ -150,11 +197,18 @@ interface WorkerFileEntry {
|
|||||||
/** Reads worker files while normalizing sourcemaps and providing normalized paths */
|
/** Reads worker files while normalizing sourcemaps and providing normalized paths */
|
||||||
async function* listWorkerFilesAsync(workerPath: string): AsyncGenerator<WorkerFileEntry> {
|
async function* listWorkerFilesAsync(workerPath: string): AsyncGenerator<WorkerFileEntry> {
|
||||||
for await (const file of listFilesRecursively(workerPath)) {
|
for await (const file of listFilesRecursively(workerPath)) {
|
||||||
yield {
|
if (file.normalizedPath.endsWith('.map')) {
|
||||||
normalizedPath: file.normalizedPath,
|
const normalizedSourceMap = await normalizeSourceMapAsync(file);
|
||||||
path: file.path,
|
if (normalizedSourceMap) {
|
||||||
data: await fs.promises.readFile(file.path),
|
yield normalizedSourceMap;
|
||||||
};
|
}
|
||||||
|
} else {
|
||||||
|
yield {
|
||||||
|
normalizedPath: file.normalizedPath,
|
||||||
|
path: file.path,
|
||||||
|
data: await fs.promises.readFile(file.path),
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -130,8 +130,22 @@ export async function uploadAsync(params: UploadParams): Promise<UploadResult> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const getErrorMessageAsync = async (): Promise<string> => {
|
const getErrorMessageAsync = async (): Promise<string> => {
|
||||||
const body = await response.json().catch(() => null);
|
const rayId = response.headers.get('cf-ray');
|
||||||
return body?.error ?? `Upload of "${filePath}" failed: ${response.statusText}`;
|
const contentType = response.headers.get('Content-Type');
|
||||||
|
if (contentType?.startsWith('text/html')) {
|
||||||
|
// NOTE(@kitten): We've received a CDN error most likely. There's not much we can do
|
||||||
|
// except for quoting the Request ID, so a user can send it to us. We can check
|
||||||
|
// why a request was blocked by looking up a WAF event via the "Ray ID" here:
|
||||||
|
// https://dash.cloudflare.com/e6f39f67f543faa6038768e8f37e4234/expo.app/security/events
|
||||||
|
let message = `CDN firewall has aborted the upload with ${response.statusText}.`;
|
||||||
|
if (rayId) {
|
||||||
|
message += `\nReport this error quoting Request ID ${rayId}`;
|
||||||
|
}
|
||||||
|
return `Upload of "${filePath}" failed: ${message}`;
|
||||||
|
} else {
|
||||||
|
const json = await response.json().catch(() => null);
|
||||||
|
return json?.error ?? `Upload of "${filePath}" failed: ${response.statusText}`;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@expo/eas-json",
|
"name": "@expo/eas-json",
|
||||||
"description": "A library for interacting with eas.json",
|
"description": "A library for interacting with eas.json",
|
||||||
"version": "16.1.0",
|
"version": "16.3.3",
|
||||||
"author": "Expo <[email protected]>",
|
"author": "Expo <[email protected]>",
|
||||||
"bugs": "https://github.com/expo/eas-cli/issues",
|
"bugs": "https://github.com/expo/eas-cli/issues",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -243,6 +243,7 @@
|
|||||||
"enum": [
|
"enum": [
|
||||||
"auto",
|
"auto",
|
||||||
"latest",
|
"latest",
|
||||||
|
"sdk-52",
|
||||||
"sdk-51",
|
"sdk-51",
|
||||||
"sdk-50",
|
"sdk-50",
|
||||||
"sdk-49",
|
"sdk-49",
|
||||||
@@ -255,6 +256,7 @@
|
|||||||
"markdownEnumDescriptions": [
|
"markdownEnumDescriptions": [
|
||||||
"When using this option the build image is selected automatically based on the project configuration, detected Expo SDK and React Native versions.",
|
"When using this option the build image is selected automatically based on the project configuration, detected Expo SDK and React Native versions.",
|
||||||
"The latest Android image currently available. It is resolved to `ubuntu-22.04-jdk-17-ndk-r26b`. The `latest` to image mapping will be updated as new images are released.",
|
"The latest Android image currently available. It is resolved to `ubuntu-22.04-jdk-17-ndk-r26b`. The `latest` to image mapping will be updated as new images are released.",
|
||||||
|
"The recommended image for SDK 52 builds",
|
||||||
"The recommended image for SDK 51 builds",
|
"The recommended image for SDK 51 builds",
|
||||||
"The recommended image for SDK 50 builds",
|
"The recommended image for SDK 50 builds",
|
||||||
"The recommended image for SDK 49 builds"
|
"The recommended image for SDK 49 builds"
|
||||||
|
|||||||
Reference in new issue
Block a user