eas-cli 18.0.6 → 18.2.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 +521 -507
- package/bin/dev +6 -13
- package/bin/run +4 -4
- package/build/commandUtils/flags.d.ts +16 -6
- package/build/commandUtils/flags.js +21 -9
- package/build/commandUtils/pagination.d.ts +4 -4
- package/build/commandUtils/pagination.js +4 -2
- package/build/commandUtils/workflow/inputs.js +2 -2
- package/build/commandUtils/workflow/parse.d.ts +3 -0
- package/build/commandUtils/workflow/parse.js +12 -0
- package/build/commandUtils/workflow/validation.d.ts +0 -3
- package/build/commandUtils/workflow/validation.js +2 -6
- package/build/commands/account/usage.d.ts +2 -3
- package/build/commands/account/usage.js +5 -5
- package/build/commands/analytics.d.ts +2 -3
- package/build/commands/analytics.js +6 -1
- package/build/commands/branch/create.d.ts +2 -4
- package/build/commands/branch/create.js +10 -6
- package/build/commands/branch/delete.d.ts +2 -4
- package/build/commands/branch/delete.js +6 -6
- package/build/commands/branch/list.d.ts +1 -1
- package/build/commands/branch/list.js +2 -1
- package/build/commands/branch/rename.d.ts +2 -2
- package/build/commands/branch/rename.js +2 -1
- package/build/commands/branch/view.d.ts +3 -5
- package/build/commands/branch/view.js +6 -6
- package/build/commands/build/cancel.d.ts +4 -4
- package/build/commands/build/cancel.js +6 -4
- package/build/commands/build/configure.d.ts +1 -1
- package/build/commands/build/configure.js +2 -2
- package/build/commands/build/delete.d.ts +4 -4
- package/build/commands/build/delete.js +6 -4
- package/build/commands/build/dev.d.ts +2 -2
- package/build/commands/build/dev.js +2 -2
- package/build/commands/build/download.d.ts +2 -2
- package/build/commands/build/download.js +4 -3
- package/build/commands/build/index.d.ts +8 -8
- package/build/commands/build/index.js +8 -11
- package/build/commands/build/inspect.d.ts +4 -4
- package/build/commands/build/inspect.js +4 -4
- package/build/commands/build/internal.d.ts +3 -3
- package/build/commands/build/internal.js +2 -2
- package/build/commands/build/list.d.ts +13 -13
- package/build/commands/build/list.js +8 -7
- package/build/commands/build/resign.d.ts +5 -5
- package/build/commands/build/resign.js +4 -4
- package/build/commands/build/run.d.ts +6 -6
- package/build/commands/build/run.js +2 -2
- package/build/commands/build/version/get.d.ts +2 -2
- package/build/commands/build/version/get.js +8 -7
- package/build/commands/build/version/set.d.ts +2 -2
- package/build/commands/build/version/set.js +2 -2
- package/build/commands/build/version/sync.d.ts +2 -2
- package/build/commands/build/version/sync.js +2 -2
- package/build/commands/build/view.d.ts +2 -2
- package/build/commands/build/view.js +4 -1
- package/build/commands/channel/create.d.ts +2 -4
- package/build/commands/channel/create.js +10 -6
- package/build/commands/channel/delete.d.ts +2 -4
- package/build/commands/channel/delete.js +7 -6
- package/build/commands/channel/edit.d.ts +3 -5
- package/build/commands/channel/edit.js +6 -6
- package/build/commands/channel/list.d.ts +1 -1
- package/build/commands/channel/list.js +1 -1
- package/build/commands/channel/pause.d.ts +3 -5
- package/build/commands/channel/pause.js +6 -6
- package/build/commands/channel/resume.d.ts +3 -5
- package/build/commands/channel/resume.js +6 -6
- package/build/commands/channel/rollout.d.ts +8 -9
- package/build/commands/channel/rollout.js +9 -11
- package/build/commands/channel/view.d.ts +3 -5
- package/build/commands/channel/view.js +6 -6
- package/build/commands/config.d.ts +2 -2
- package/build/commands/config.js +6 -5
- package/build/commands/credentials/configure-build.d.ts +2 -2
- package/build/commands/credentials/configure-build.js +2 -2
- package/build/commands/credentials/index.d.ts +1 -1
- package/build/commands/credentials/index.js +1 -1
- package/build/commands/deploy/alias/delete.d.ts +2 -2
- package/build/commands/deploy/alias/delete.js +7 -3
- package/build/commands/deploy/alias/index.d.ts +2 -2
- package/build/commands/deploy/alias/index.js +3 -2
- package/build/commands/deploy/delete.d.ts +2 -2
- package/build/commands/deploy/delete.js +7 -3
- package/build/commands/deploy/index.d.ts +5 -4
- package/build/commands/deploy/index.js +12 -3
- package/build/commands/device/delete.d.ts +2 -2
- package/build/commands/device/list.d.ts +2 -2
- package/build/commands/device/rename.d.ts +3 -3
- package/build/commands/device/view.d.ts +2 -2
- package/build/commands/device/view.js +4 -1
- package/build/commands/env/create.d.ts +8 -11
- package/build/commands/env/create.js +6 -7
- package/build/commands/env/delete.d.ts +5 -8
- package/build/commands/env/delete.js +4 -5
- package/build/commands/env/exec.d.ts +3 -4
- package/build/commands/env/exec.js +7 -8
- package/build/commands/env/get.d.ts +6 -9
- package/build/commands/env/get.js +4 -5
- package/build/commands/env/list.d.ts +5 -8
- package/build/commands/env/list.js +4 -5
- package/build/commands/env/pull.d.ts +4 -6
- package/build/commands/env/pull.js +4 -5
- package/build/commands/env/push.d.ts +7 -7
- package/build/commands/env/push.js +4 -5
- package/build/commands/env/update.d.ts +10 -13
- package/build/commands/env/update.js +6 -7
- package/build/commands/fingerprint/compare.d.ts +6 -7
- package/build/commands/fingerprint/compare.js +10 -11
- package/build/commands/fingerprint/generate.d.ts +3 -3
- package/build/commands/fingerprint/generate.js +4 -3
- package/build/commands/go.d.ts +2 -2
- package/build/commands/go.js +1 -2
- package/build/commands/metadata/lint.d.ts +1 -1
- package/build/commands/metadata/pull.d.ts +1 -1
- package/build/commands/metadata/push.d.ts +1 -1
- package/build/commands/project/init.d.ts +1 -1
- package/build/commands/project/new.d.ts +3 -5
- package/build/commands/project/new.js +6 -7
- package/build/commands/project/onboarding.d.ts +2 -2
- package/build/commands/project/onboarding.js +4 -1
- package/build/commands/secret/create.d.ts +4 -4
- package/build/commands/secret/create.js +7 -6
- package/build/commands/secret/delete.d.ts +1 -1
- package/build/commands/secret/push.d.ts +2 -2
- package/build/commands/secret/push.js +2 -2
- package/build/commands/submit/internal.d.ts +3 -3
- package/build/commands/submit/internal.js +2 -2
- package/build/commands/submit.d.ts +7 -7
- package/build/commands/submit.js +2 -2
- package/build/commands/update/configure.d.ts +2 -2
- package/build/commands/update/configure.js +2 -7
- package/build/commands/update/delete.d.ts +2 -4
- package/build/commands/update/delete.js +7 -6
- package/build/commands/update/edit.d.ts +4 -5
- package/build/commands/update/edit.js +7 -6
- package/build/commands/update/index.d.ts +9 -9
- package/build/commands/update/index.js +30 -14
- package/build/commands/update/list.d.ts +4 -4
- package/build/commands/update/list.js +4 -3
- package/build/commands/update/republish.d.ts +9 -9
- package/build/commands/update/republish.js +4 -4
- package/build/commands/update/revert-update-rollout.d.ts +5 -5
- package/build/commands/update/revert-update-rollout.js +2 -2
- package/build/commands/update/roll-back-to-embedded.d.ts +6 -6
- package/build/commands/update/roll-back-to-embedded.js +4 -4
- package/build/commands/update/rollback.d.ts +1 -1
- package/build/commands/update/view.d.ts +2 -4
- package/build/commands/update/view.js +5 -5
- package/build/commands/upload.d.ts +3 -3
- package/build/commands/upload.js +4 -3
- package/build/commands/webhook/create.d.ts +3 -3
- package/build/commands/webhook/create.js +2 -2
- package/build/commands/webhook/delete.d.ts +2 -4
- package/build/commands/webhook/delete.js +8 -6
- package/build/commands/webhook/list.d.ts +1 -1
- package/build/commands/webhook/list.js +2 -2
- package/build/commands/webhook/update.d.ts +4 -4
- package/build/commands/webhook/update.js +2 -2
- package/build/commands/webhook/view.d.ts +2 -4
- package/build/commands/webhook/view.js +5 -5
- package/build/commands/workflow/create.d.ts +2 -4
- package/build/commands/workflow/create.js +4 -5
- package/build/commands/workflow/logs.d.ts +2 -3
- package/build/commands/workflow/logs.js +5 -3
- package/build/commands/workflow/run.d.ts +4 -5
- package/build/commands/workflow/run.js +6 -1
- package/build/commands/workflow/runs.d.ts +2 -2
- package/build/commands/workflow/runs.js +2 -2
- package/build/commands/workflow/status.d.ts +2 -3
- package/build/commands/workflow/status.js +7 -5
- package/build/commands/workflow/validate.d.ts +2 -4
- package/build/commands/workflow/validate.js +5 -5
- package/build/commands/workflow/view.d.ts +2 -3
- package/build/commands/workflow/view.js +6 -1
- package/build/credentials/android/actions/BuildCredentialsUtils.js +0 -1
- package/build/credentials/android/actions/CreateKeystore.js +9 -10
- package/build/credentials/android/actions/SetUpBuildCredentials.js +0 -4
- package/build/update/utils.d.ts +2 -2
- package/build/update/utils.js +21 -10
- package/build/worker/assets.d.ts +3 -1
- package/build/worker/assets.js +4 -1
- package/oclif.manifest.json +7133 -2227
- package/package.json +7 -7
|
@@ -24,10 +24,10 @@ class FingerprintGenerate extends EasCommand_1.default {
|
|
|
24
24
|
'$ eas fingerprint:generate --json --non-interactive --platform android \t # Output fingerprint json to stdout',
|
|
25
25
|
];
|
|
26
26
|
static flags = {
|
|
27
|
-
platform: core_1.Flags.
|
|
27
|
+
platform: core_1.Flags.option({
|
|
28
28
|
char: 'p',
|
|
29
29
|
options: ['android', 'ios'],
|
|
30
|
-
}),
|
|
30
|
+
})(),
|
|
31
31
|
...flags_1.EASEnvironmentFlag,
|
|
32
32
|
environment: core_1.Flags.string({
|
|
33
33
|
...flags_1.EasEnvironmentFlagParameters,
|
|
@@ -50,7 +50,8 @@ class FingerprintGenerate extends EasCommand_1.default {
|
|
|
50
50
|
};
|
|
51
51
|
async runAsync() {
|
|
52
52
|
const { flags } = await this.parse(FingerprintGenerate);
|
|
53
|
-
const { json,
|
|
53
|
+
const { json, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
|
|
54
|
+
const { platform: platformStringFlag, environment, 'build-profile': buildProfileName } = flags;
|
|
54
55
|
const { projectId, privateProjectConfig: { projectDir }, loggedIn: { graphqlClient }, vcsClient, getServerSideEnvironmentVariablesAsync, getDynamicPrivateProjectConfigAsync, } = await this.getContextAsync(FingerprintGenerate, {
|
|
55
56
|
nonInteractive,
|
|
56
57
|
withServerSideEnvironment: environment ?? null,
|
package/build/commands/go.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export default class Go extends EasCommand {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static hidden: boolean;
|
|
5
5
|
static flags: {
|
|
6
|
-
'bundle-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
-
name: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
'bundle-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
7
|
+
name: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
8
|
credentials: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
9
|
};
|
|
10
10
|
static contextDefinition: {
|
package/build/commands/go.js
CHANGED
|
@@ -147,11 +147,10 @@ class Go extends EasCommand_1.default {
|
|
|
147
147
|
async runAsync() {
|
|
148
148
|
log_1.default.log(chalk_1.default.bold(`Creating your personal Expo Go and deploying to TestFlight. ${(0, log_1.learnMore)('https://expo.fyi/deploy-expo-go-testflight')}`));
|
|
149
149
|
const { flags } = await this.parse(Go);
|
|
150
|
-
const spinner = (0, ora_1.ora)('Logging in to Expo...').start();
|
|
151
150
|
const { loggedIn: { actor, graphqlClient }, analytics, } = await this.getContextAsync(Go, {
|
|
152
151
|
nonInteractive: false,
|
|
153
152
|
});
|
|
154
|
-
|
|
153
|
+
log_1.default.withTick(`Logged in as ${chalk_1.default.cyan((0, User_1.getActorDisplayName)(actor))}`);
|
|
155
154
|
const bundleId = flags['bundle-id'] ?? this.generateBundleId(actor);
|
|
156
155
|
const appName = flags.name ?? 'My Expo Go';
|
|
157
156
|
const slug = bundleId.split('.').pop() || 'my-expo-go';
|
|
@@ -3,7 +3,7 @@ export default class MetadataLint extends EasCommand {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
5
|
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
6
|
-
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
6
|
+
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
7
7
|
};
|
|
8
8
|
static contextDefinition: {
|
|
9
9
|
projectDir: import("../../commandUtils/context/ProjectDirContextField").default;
|
|
@@ -2,7 +2,7 @@ import EasCommand from '../../commandUtils/EasCommand';
|
|
|
2
2
|
export default class MetadataPull extends EasCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
5
|
+
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
6
6
|
};
|
|
7
7
|
static contextDefinition: {
|
|
8
8
|
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
@@ -2,7 +2,7 @@ import EasCommand from '../../commandUtils/EasCommand';
|
|
|
2
2
|
export default class MetadataPush extends EasCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
5
|
+
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
6
6
|
};
|
|
7
7
|
static contextDefinition: {
|
|
8
8
|
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
@@ -4,7 +4,7 @@ export default class ProjectInit extends EasCommand {
|
|
|
4
4
|
static aliases: string[];
|
|
5
5
|
static flags: {
|
|
6
6
|
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
|
-
id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
8
|
force: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
9
|
};
|
|
10
10
|
static contextDefinition: {
|
|
@@ -22,12 +22,10 @@ export default class New extends EasCommand {
|
|
|
22
22
|
static aliases: string[];
|
|
23
23
|
static description: string;
|
|
24
24
|
static args: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
required: boolean;
|
|
28
|
-
}[];
|
|
25
|
+
path: import("@oclif/core/lib/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
26
|
+
};
|
|
29
27
|
static flags: {
|
|
30
|
-
'package-manager': import("@oclif/core/lib/interfaces").OptionFlag<"npm" | "pnpm" | "bun" | "yarn">;
|
|
28
|
+
'package-manager': import("@oclif/core/lib/interfaces").OptionFlag<"npm" | "pnpm" | "bun" | "yarn", import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
31
29
|
};
|
|
32
30
|
static contextDefinition: {
|
|
33
31
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
@@ -70,20 +70,19 @@ async function generateProjectFilesAsync(projectDir, app, packageManager) {
|
|
|
70
70
|
class New extends EasCommand_1.default {
|
|
71
71
|
static aliases = ['new'];
|
|
72
72
|
static description = 'Create a new project configured with Expo Application Services (EAS)';
|
|
73
|
-
static args =
|
|
74
|
-
{
|
|
75
|
-
name: 'path',
|
|
73
|
+
static args = {
|
|
74
|
+
path: core_1.Args.string({
|
|
76
75
|
description: 'Path to create the project (defaults to current directory)',
|
|
77
76
|
required: false,
|
|
78
|
-
},
|
|
79
|
-
|
|
77
|
+
}),
|
|
78
|
+
};
|
|
80
79
|
static flags = {
|
|
81
|
-
'package-manager': core_1.Flags.
|
|
80
|
+
'package-manager': core_1.Flags.option({
|
|
82
81
|
char: 'p',
|
|
83
82
|
description: 'Package manager to use for installing dependencies',
|
|
84
83
|
options: [...installDependencies_1.PACKAGE_MANAGERS],
|
|
85
84
|
default: 'npm',
|
|
86
|
-
}),
|
|
85
|
+
})(),
|
|
87
86
|
};
|
|
88
87
|
static contextDefinition = {
|
|
89
88
|
...this.ContextOptions.LoggedIn,
|
|
@@ -4,8 +4,8 @@ export default class Onboarding extends EasCommand {
|
|
|
4
4
|
static description: string;
|
|
5
5
|
static flags: {};
|
|
6
6
|
static args: {
|
|
7
|
-
|
|
8
|
-
}
|
|
7
|
+
TARGET_PROJECT_DIRECTORY: import("@oclif/core/lib/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
8
|
+
};
|
|
9
9
|
static contextDefinition: {
|
|
10
10
|
analytics: import("../../commandUtils/context/AnalyticsContextField").default;
|
|
11
11
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
4
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
6
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
7
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -28,7 +29,9 @@ class Onboarding extends EasCommand_1.default {
|
|
|
28
29
|
static aliases = ['init:onboarding', 'onboarding'];
|
|
29
30
|
static description = 'continue onboarding process started on the https://expo.new website.';
|
|
30
31
|
static flags = {};
|
|
31
|
-
static args =
|
|
32
|
+
static args = {
|
|
33
|
+
TARGET_PROJECT_DIRECTORY: core_1.Args.string({}),
|
|
34
|
+
};
|
|
32
35
|
static contextDefinition = {
|
|
33
36
|
...this.ContextOptions.LoggedIn,
|
|
34
37
|
...this.ContextOptions.Analytics,
|
|
@@ -6,10 +6,10 @@ export default class EnvironmentSecretCreate extends EasCommand {
|
|
|
6
6
|
static hidden: boolean;
|
|
7
7
|
static flags: {
|
|
8
8
|
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
-
scope: import("@oclif/core/lib/interfaces").OptionFlag<EnvironmentSecretScope>;
|
|
10
|
-
name: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
11
|
-
value: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
12
|
-
type: import("@oclif/core/lib/interfaces").OptionFlag<SecretType | undefined>;
|
|
9
|
+
scope: import("@oclif/core/lib/interfaces").OptionFlag<EnvironmentSecretScope, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
name: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
value: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
|
+
type: import("@oclif/core/lib/interfaces").OptionFlag<SecretType | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
13
|
force: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
14
|
};
|
|
15
15
|
static contextDefinition: {
|
|
@@ -18,21 +18,21 @@ class EnvironmentSecretCreate extends EasCommand_1.default {
|
|
|
18
18
|
static description = 'create an environment secret on the current project or owner account';
|
|
19
19
|
static hidden = true;
|
|
20
20
|
static flags = {
|
|
21
|
-
scope: core_1.Flags.
|
|
21
|
+
scope: core_1.Flags.option({
|
|
22
22
|
description: 'Scope for the secret',
|
|
23
23
|
options: [EnvironmentSecretsQuery_1.EnvironmentSecretScope.ACCOUNT, EnvironmentSecretsQuery_1.EnvironmentSecretScope.PROJECT],
|
|
24
24
|
default: EnvironmentSecretsQuery_1.EnvironmentSecretScope.PROJECT,
|
|
25
|
-
}),
|
|
25
|
+
})(),
|
|
26
26
|
name: core_1.Flags.string({
|
|
27
27
|
description: 'Name of the secret',
|
|
28
28
|
}),
|
|
29
29
|
value: core_1.Flags.string({
|
|
30
30
|
description: 'Text value or path to a file to store in the secret',
|
|
31
31
|
}),
|
|
32
|
-
type: core_1.Flags.
|
|
32
|
+
type: core_1.Flags.option({
|
|
33
33
|
description: 'The type of secret',
|
|
34
34
|
options: [EnvironmentSecret_1.SecretType.STRING, EnvironmentSecret_1.SecretType.FILE],
|
|
35
|
-
}),
|
|
35
|
+
})(),
|
|
36
36
|
force: core_1.Flags.boolean({
|
|
37
37
|
description: 'Delete and recreate existing secrets',
|
|
38
38
|
default: false,
|
|
@@ -133,6 +133,7 @@ class EnvironmentSecretCreate extends EasCommand_1.default {
|
|
|
133
133
|
}));
|
|
134
134
|
}
|
|
135
135
|
(0, assert_1.default)(secretValue);
|
|
136
|
+
const environmentSecretType = EnvironmentSecret_1.SecretTypeToEnvironmentSecretType[secretType];
|
|
136
137
|
let secretFilePath;
|
|
137
138
|
if (secretType === EnvironmentSecret_1.SecretType.FILE) {
|
|
138
139
|
secretFilePath = path_1.default.resolve(secretValue);
|
|
@@ -150,7 +151,7 @@ class EnvironmentSecretCreate extends EasCommand_1.default {
|
|
|
150
151
|
log_1.default.withTick(`Deleting existing secret ${chalk_1.default.bold(name)} on project ${chalk_1.default.bold(projectDisplayName)}.`);
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
|
-
const secret = await EnvironmentSecretMutation_1.EnvironmentSecretMutation.createForAppAsync(graphqlClient, { name, value: secretValue, type:
|
|
154
|
+
const secret = await EnvironmentSecretMutation_1.EnvironmentSecretMutation.createForAppAsync(graphqlClient, { name, value: secretValue, type: environmentSecretType }, projectId);
|
|
154
155
|
if (!secret) {
|
|
155
156
|
throw new Error(`Could not create secret with name ${name} on project with id ${projectId}`);
|
|
156
157
|
}
|
|
@@ -170,7 +171,7 @@ class EnvironmentSecretCreate extends EasCommand_1.default {
|
|
|
170
171
|
log_1.default.withTick(`Deleting existing secret ${chalk_1.default.bold(name)} on account ${chalk_1.default.bold(ownerAccount.name)}.`);
|
|
171
172
|
}
|
|
172
173
|
}
|
|
173
|
-
const secret = await EnvironmentSecretMutation_1.EnvironmentSecretMutation.createForAccountAsync(graphqlClient, { name, value: secretValue, type:
|
|
174
|
+
const secret = await EnvironmentSecretMutation_1.EnvironmentSecretMutation.createForAccountAsync(graphqlClient, { name, value: secretValue, type: environmentSecretType }, ownerAccount.id);
|
|
174
175
|
if (!secret) {
|
|
175
176
|
throw new Error(`Could not create secret with name ${name} on account with id ${ownerAccount.id}`);
|
|
176
177
|
}
|
|
@@ -4,7 +4,7 @@ export default class EnvironmentSecretDelete extends EasCommand {
|
|
|
4
4
|
static hidden: boolean;
|
|
5
5
|
static flags: {
|
|
6
6
|
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
|
-
id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
8
|
};
|
|
9
9
|
static contextDefinition: {
|
|
10
10
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
@@ -5,8 +5,8 @@ export default class EnvironmentSecretPush extends EasCommand {
|
|
|
5
5
|
static hidden: boolean;
|
|
6
6
|
static flags: {
|
|
7
7
|
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
|
-
scope: import("@oclif/core/lib/interfaces").OptionFlag<EnvironmentSecretScope>;
|
|
9
|
-
'env-file': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
8
|
+
scope: import("@oclif/core/lib/interfaces").OptionFlag<EnvironmentSecretScope, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
9
|
+
'env-file': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
10
|
force: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static contextDefinition: {
|
|
@@ -20,11 +20,11 @@ class EnvironmentSecretPush extends EasCommand_1.default {
|
|
|
20
20
|
static description = 'read environment secrets from env file and store on the server';
|
|
21
21
|
static hidden = true;
|
|
22
22
|
static flags = {
|
|
23
|
-
scope: core_1.Flags.
|
|
23
|
+
scope: core_1.Flags.option({
|
|
24
24
|
description: 'Scope for the secrets',
|
|
25
25
|
options: [EnvironmentSecretsQuery_1.EnvironmentSecretScope.ACCOUNT, EnvironmentSecretsQuery_1.EnvironmentSecretScope.PROJECT],
|
|
26
26
|
default: EnvironmentSecretsQuery_1.EnvironmentSecretScope.PROJECT,
|
|
27
|
-
}),
|
|
27
|
+
})(),
|
|
28
28
|
'env-file': core_1.Flags.string({
|
|
29
29
|
description: 'Env file with secrets',
|
|
30
30
|
}),
|
|
@@ -9,9 +9,9 @@ import EasCommand from '../../commandUtils/EasCommand';
|
|
|
9
9
|
export default class SubmitInternal extends EasCommand {
|
|
10
10
|
static hidden: boolean;
|
|
11
11
|
static flags: {
|
|
12
|
-
platform: import("@oclif/core/lib/interfaces").OptionFlag<Platform>;
|
|
13
|
-
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
14
|
-
id: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
12
|
+
platform: import("@oclif/core/lib/interfaces").OptionFlag<Platform, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
14
|
+
id: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
15
15
|
};
|
|
16
16
|
static contextDefinition: {
|
|
17
17
|
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
@@ -23,10 +23,10 @@ const git_1 = tslib_1.__importDefault(require("../../vcs/clients/git"));
|
|
|
23
23
|
class SubmitInternal extends EasCommand_1.default {
|
|
24
24
|
static hidden = true;
|
|
25
25
|
static flags = {
|
|
26
|
-
platform: core_1.Flags.
|
|
26
|
+
platform: core_1.Flags.option({
|
|
27
27
|
options: [eas_build_job_1.Platform.ANDROID, eas_build_job_1.Platform.IOS],
|
|
28
28
|
required: true,
|
|
29
|
-
}),
|
|
29
|
+
})(),
|
|
30
30
|
profile: core_1.Flags.string({
|
|
31
31
|
description: 'Name of the submit profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
32
32
|
}),
|
|
@@ -3,17 +3,17 @@ export default class Submit extends EasCommand {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static aliases: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
platform: import("@oclif/core/lib/interfaces").OptionFlag<
|
|
7
|
-
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
6
|
+
platform: import("@oclif/core/lib/interfaces").OptionFlag<"android" | "ios" | "all" | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
7
|
+
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
8
|
latest: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
-
id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
10
|
-
path: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
11
|
-
url: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
12
|
-
'what-to-test': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
9
|
+
id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
path: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
url: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
|
+
'what-to-test': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
13
|
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
14
|
wait: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
15
|
'verbose-fastlane': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
|
-
groups: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined>;
|
|
16
|
+
groups: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
17
17
|
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
18
18
|
};
|
|
19
19
|
static contextDefinition: {
|
package/build/commands/submit.js
CHANGED
|
@@ -18,10 +18,10 @@ class Submit extends EasCommand_1.default {
|
|
|
18
18
|
static description = 'submit app binary to App Store and/or Play Store';
|
|
19
19
|
static aliases = ['build:submit'];
|
|
20
20
|
static flags = {
|
|
21
|
-
platform: core_1.Flags.
|
|
21
|
+
platform: core_1.Flags.option({
|
|
22
22
|
char: 'p',
|
|
23
23
|
options: ['android', 'ios', 'all'],
|
|
24
|
-
}),
|
|
24
|
+
})(),
|
|
25
25
|
profile: core_1.Flags.string({
|
|
26
26
|
char: 'e',
|
|
27
27
|
description: 'Name of the submit profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
@@ -4,8 +4,8 @@ export default class UpdateConfigure extends EasCommand {
|
|
|
4
4
|
static description: string;
|
|
5
5
|
static flags: {
|
|
6
6
|
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
|
-
environment: import("@oclif/core/lib/interfaces").OptionFlag<string
|
|
8
|
-
platform: import("@oclif/core/lib/interfaces").OptionFlag<RequestedPlatform>;
|
|
7
|
+
environment: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
|
+
platform: import("@oclif/core/lib/interfaces").OptionFlag<RequestedPlatform, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
9
9
|
};
|
|
10
10
|
static contextDefinition: {
|
|
11
11
|
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
@@ -10,16 +10,15 @@ const flags_1 = require("../../commandUtils/flags");
|
|
|
10
10
|
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
11
11
|
const platform_1 = require("../../platform");
|
|
12
12
|
const configure_2 = require("../../update/configure");
|
|
13
|
-
const utils_1 = require("../../update/utils");
|
|
14
13
|
class UpdateConfigure extends EasCommand_1.default {
|
|
15
14
|
static description = 'configure the project to support EAS Update';
|
|
16
15
|
static flags = {
|
|
17
|
-
platform: core_1.Flags.
|
|
16
|
+
platform: core_1.Flags.option({
|
|
18
17
|
description: 'Platform to configure',
|
|
19
18
|
char: 'p',
|
|
20
19
|
options: Object.values(platform_1.RequestedPlatform),
|
|
21
20
|
default: platform_1.RequestedPlatform.All,
|
|
22
|
-
}),
|
|
21
|
+
})(),
|
|
23
22
|
...flags_1.EasUpdateEnvironmentFlag,
|
|
24
23
|
...flags_1.EASNonInteractiveFlag,
|
|
25
24
|
};
|
|
@@ -34,10 +33,6 @@ class UpdateConfigure extends EasCommand_1.default {
|
|
|
34
33
|
nonInteractive: flags['non-interactive'],
|
|
35
34
|
withServerSideEnvironment: flags['environment'] ?? null,
|
|
36
35
|
});
|
|
37
|
-
(0, utils_1.assertEnvironmentFlagForSdk55OrGreater)({
|
|
38
|
-
sdkVersion: exp.sdkVersion,
|
|
39
|
-
environment: flags['environment'],
|
|
40
|
-
});
|
|
41
36
|
log_1.default.log('💡 The following process will configure your project to use EAS Update. These changes only apply to your local project files and you can safely revert them at any time.');
|
|
42
37
|
await vcsClient.ensureRepoExistsAsync();
|
|
43
38
|
const easJsonAccessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
@@ -2,10 +2,8 @@ import EasCommand from '../../commandUtils/EasCommand';
|
|
|
2
2
|
export default class UpdateDelete extends EasCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static args: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
description: string;
|
|
8
|
-
}[];
|
|
5
|
+
groupId: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
9
7
|
static flags: {
|
|
10
8
|
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
9
|
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
4
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
5
6
|
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
6
7
|
const flags_1 = require("../../commandUtils/flags");
|
|
@@ -11,13 +12,12 @@ const json_1 = require("../../utils/json");
|
|
|
11
12
|
const pollForBackgroundJobReceiptAsync_1 = require("../../utils/pollForBackgroundJobReceiptAsync");
|
|
12
13
|
class UpdateDelete extends EasCommand_1.default {
|
|
13
14
|
static description = 'delete all the updates in an update group';
|
|
14
|
-
static args =
|
|
15
|
-
{
|
|
16
|
-
name: 'groupId',
|
|
15
|
+
static args = {
|
|
16
|
+
groupId: core_1.Args.string({
|
|
17
17
|
required: true,
|
|
18
18
|
description: 'The ID of an update group to delete.',
|
|
19
|
-
},
|
|
20
|
-
|
|
19
|
+
}),
|
|
20
|
+
};
|
|
21
21
|
static flags = {
|
|
22
22
|
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
23
23
|
};
|
|
@@ -25,7 +25,8 @@ class UpdateDelete extends EasCommand_1.default {
|
|
|
25
25
|
...this.ContextOptions.LoggedIn,
|
|
26
26
|
};
|
|
27
27
|
async runAsync() {
|
|
28
|
-
const { args: { groupId: group }, flags
|
|
28
|
+
const { args: { groupId: group }, flags, } = await this.parse(UpdateDelete);
|
|
29
|
+
const { json: jsonFlag, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
|
|
29
30
|
const { loggedIn: { graphqlClient }, } = await this.getContextAsync(UpdateDelete, { nonInteractive });
|
|
30
31
|
if (jsonFlag) {
|
|
31
32
|
(0, json_1.enableJsonOutput)();
|
|
@@ -2,14 +2,13 @@ import EasCommand from '../../commandUtils/EasCommand';
|
|
|
2
2
|
export default class UpdateEdit extends EasCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static args: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}[];
|
|
5
|
+
groupId: import("@oclif/core/lib/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
6
|
+
};
|
|
8
7
|
static flags: {
|
|
9
8
|
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
9
|
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
-
'rollout-percentage': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
|
|
12
|
-
branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
10
|
+
'rollout-percentage': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
12
|
};
|
|
14
13
|
static contextDefinition: {
|
|
15
14
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
@@ -16,12 +16,11 @@ const utils_1 = require("../../update/utils");
|
|
|
16
16
|
const json_1 = require("../../utils/json");
|
|
17
17
|
class UpdateEdit extends EasCommand_1.default {
|
|
18
18
|
static description = 'edit all the updates in an update group';
|
|
19
|
-
static args =
|
|
20
|
-
{
|
|
21
|
-
name: 'groupId',
|
|
19
|
+
static args = {
|
|
20
|
+
groupId: core_1.Args.string({
|
|
22
21
|
description: 'The ID of an update group to edit.',
|
|
23
|
-
},
|
|
24
|
-
|
|
22
|
+
}),
|
|
23
|
+
};
|
|
25
24
|
static flags = {
|
|
26
25
|
'rollout-percentage': core_1.Flags.integer({
|
|
27
26
|
description: `Rollout percentage to set for a rollout update. The specified number must be an integer between 1 and 100.`,
|
|
@@ -39,7 +38,9 @@ class UpdateEdit extends EasCommand_1.default {
|
|
|
39
38
|
...this.ContextOptions.LoggedIn,
|
|
40
39
|
};
|
|
41
40
|
async runAsync() {
|
|
42
|
-
const { args: { groupId: maybeGroupId }, flags
|
|
41
|
+
const { args: { groupId: maybeGroupId }, flags, } = await this.parse(UpdateEdit);
|
|
42
|
+
const { 'rollout-percentage': rolloutPercentage, branch: branchFlag } = flags;
|
|
43
|
+
const { json: jsonFlag, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
|
|
43
44
|
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(UpdateEdit, { nonInteractive });
|
|
44
45
|
if (jsonFlag) {
|
|
45
46
|
(0, json_1.enableJsonOutput)();
|
|
@@ -11,20 +11,20 @@ export default class UpdatePublish extends EasCommand {
|
|
|
11
11
|
static flags: {
|
|
12
12
|
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
13
|
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
-
environment: import("@oclif/core/lib/interfaces").OptionFlag<string
|
|
15
|
-
branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
16
|
-
channel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
17
|
-
message: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
18
|
-
'input-dir': import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
14
|
+
environment: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
15
|
+
branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
16
|
+
channel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
17
|
+
message: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
18
|
+
'input-dir': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
19
19
|
'skip-bundler': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
20
20
|
'clear-cache': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
21
21
|
'no-bytecode': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
22
|
-
'source-maps': import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
22
|
+
'source-maps': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
23
23
|
'emit-metadata': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
24
|
-
'rollout-percentage': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
|
|
25
|
-
platform: import("@oclif/core/lib/interfaces").OptionFlag<RequestedPlatform>;
|
|
24
|
+
'rollout-percentage': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
25
|
+
platform: import("@oclif/core/lib/interfaces").OptionFlag<RequestedPlatform, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
26
26
|
auto: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
27
|
-
'private-key-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
27
|
+
'private-key-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
28
28
|
};
|
|
29
29
|
static contextDefinition: {
|
|
30
30
|
getServerSideEnvironmentVariablesAsync: import("../../commandUtils/context/ServerSideEnvironmentVariablesContextField").ServerSideEnvironmentVariablesContextField;
|