eas-cli 14.2.0 → 14.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -70
- package/build/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.js +5 -1
- package/build/commandUtils/context/contextUtils/loadServerSideEnvironmentVariablesAsync.js +2 -2
- package/build/commandUtils/flags.d.ts +1 -1
- package/build/commands/build/version/sync.js +1 -1
- package/build/commands/device/delete.js +2 -2
- package/build/commands/device/rename.js +2 -2
- package/build/commands/env/create.d.ts +1 -1
- package/build/commands/env/exec.js +1 -1
- package/build/commands/env/update.d.ts +1 -1
- package/build/commands/worker/alias.js +1 -1
- package/build/commands/worker/deploy.js +6 -3
- package/build/commands/workflow/run.js +12 -3
- package/build/devices/actions/create/currentMachineMethod.js +1 -1
- package/build/devices/actions/create/inputMethod.js +1 -1
- package/build/graphql/generated.d.ts +60 -6
- package/build/graphql/generated.js +12 -6
- package/build/graphql/mutations/WorkflowRevisionMutation.d.ts +2 -2
- package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +2 -2
- package/build/project/uploadAccountScopedFileAsync.d.ts +14 -0
- package/build/project/uploadAccountScopedFileAsync.js +35 -0
- package/build/utils/statuspageService.js +2 -2
- package/build/worker/upload.d.ts +2 -0
- package/build/worker/upload.js +6 -4
- package/oclif.manifest.json +1 -1
- package/package.json +6 -5
- package/build/project/uploadAccountScopedEasJsonAsync.d.ts +0 -12
- package/build/project/uploadAccountScopedEasJsonAsync.js +0 -34
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
-
/**
|
|
3
|
-
* Uploads the `eas.json` file to GCS as account-scoped object.
|
|
4
|
-
* Used in workflows. Takes care of logging progress.
|
|
5
|
-
*/
|
|
6
|
-
export declare function uploadAccountScopedEasJsonAsync({ graphqlClient, accountId, projectDir, }: {
|
|
7
|
-
graphqlClient: ExpoGraphqlClient;
|
|
8
|
-
accountId: string;
|
|
9
|
-
projectDir: string;
|
|
10
|
-
}): Promise<{
|
|
11
|
-
easJsonBucketKey: string;
|
|
12
|
-
}>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uploadAccountScopedEasJsonAsync = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
-
const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
|
|
7
|
-
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
8
|
-
const generated_1 = require("../graphql/generated");
|
|
9
|
-
const uploads_1 = require("../uploads");
|
|
10
|
-
const files_1 = require("../utils/files");
|
|
11
|
-
const progress_1 = require("../utils/progress");
|
|
12
|
-
/**
|
|
13
|
-
* Uploads the `eas.json` file to GCS as account-scoped object.
|
|
14
|
-
* Used in workflows. Takes care of logging progress.
|
|
15
|
-
*/
|
|
16
|
-
async function uploadAccountScopedEasJsonAsync({ graphqlClient, accountId, projectDir, }) {
|
|
17
|
-
const easJsonFilePath = node_path_1.default.join(projectDir, 'eas.json');
|
|
18
|
-
const easJsonFileStat = await node_fs_1.default.promises.stat(easJsonFilePath);
|
|
19
|
-
if (easJsonFileStat.size > 1024 * 1024) {
|
|
20
|
-
throw new Error('eas.json is too big. Maximum allowed size is 1MB.');
|
|
21
|
-
}
|
|
22
|
-
const easJsonBucketKey = await (0, uploads_1.uploadAccountScopedFileAtPathToGCSAsync)(graphqlClient, {
|
|
23
|
-
accountId,
|
|
24
|
-
type: generated_1.AccountUploadSessionType.WorkflowsProjectSources,
|
|
25
|
-
path: easJsonFilePath,
|
|
26
|
-
handleProgressEvent: (0, progress_1.createProgressTracker)({
|
|
27
|
-
total: easJsonFileStat.size,
|
|
28
|
-
message: ratio => `Uploading eas.json to EAS (${(0, files_1.formatBytes)(easJsonFileStat.size * ratio)} / ${(0, files_1.formatBytes)(easJsonFileStat.size)})`,
|
|
29
|
-
completedMessage: (duration) => `Uploaded eas.json to EAS ${chalk_1.default.dim(duration)}`,
|
|
30
|
-
}),
|
|
31
|
-
});
|
|
32
|
-
return { easJsonBucketKey };
|
|
33
|
-
}
|
|
34
|
-
exports.uploadAccountScopedEasJsonAsync = uploadAccountScopedEasJsonAsync;
|