eas-cli 0.41.1 → 0.42.3
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 +258 -153
- package/bin/run +3 -4
- package/build/build/configure.js +3 -3
- package/build/build/local.js +1 -1
- package/build/build/utils/devClient.js +3 -3
- package/build/commandUtils/EasCommand.d.ts +2 -1
- package/build/commandUtils/EasCommand.js +7 -4
- package/build/commands/account/login.d.ts +1 -0
- package/build/commands/account/login.js +1 -0
- package/build/commands/account/logout.d.ts +1 -0
- package/build/commands/account/logout.js +1 -0
- package/build/commands/account/view.d.ts +1 -0
- package/build/commands/account/view.js +1 -0
- package/build/commands/analytics.js +1 -1
- package/build/commands/branch/create.d.ts +1 -1
- package/build/commands/branch/create.js +3 -3
- package/build/commands/branch/delete.d.ts +1 -1
- package/build/commands/branch/delete.js +3 -3
- package/build/commands/branch/list.d.ts +1 -1
- package/build/commands/branch/list.js +3 -3
- package/build/commands/branch/rename.d.ts +3 -4
- package/build/commands/branch/rename.js +5 -5
- package/build/commands/branch/view.d.ts +1 -1
- package/build/commands/branch/view.js +3 -3
- package/build/commands/build/cancel.js +1 -1
- package/build/commands/build/configure.d.ts +1 -2
- package/build/commands/build/configure.js +3 -3
- package/build/commands/build/index.d.ts +11 -12
- package/build/commands/build/index.js +20 -19
- package/build/commands/build/inspect.d.ts +6 -7
- package/build/commands/build/inspect.js +8 -8
- package/build/commands/build/list.d.ts +13 -14
- package/build/commands/build/list.js +15 -15
- package/build/commands/build/view.d.ts +1 -1
- package/build/commands/build/view.js +3 -3
- package/build/commands/channel/create.d.ts +1 -1
- package/build/commands/channel/create.js +3 -3
- package/build/commands/channel/edit.d.ts +2 -3
- package/build/commands/channel/edit.js +4 -4
- package/build/commands/channel/list.d.ts +1 -1
- package/build/commands/channel/list.js +3 -3
- package/build/commands/channel/rollout.d.ts +4 -5
- package/build/commands/channel/rollout.js +6 -7
- package/build/commands/channel/view.d.ts +1 -1
- package/build/commands/channel/view.js +3 -3
- package/build/commands/config.d.ts +2 -3
- package/build/commands/config.js +4 -4
- package/build/commands/device/list.d.ts +1 -2
- package/build/commands/device/list.js +3 -3
- package/build/commands/device/view.js +1 -1
- package/build/commands/secret/create.d.ts +4 -5
- package/build/commands/secret/create.js +6 -6
- package/build/commands/secret/delete.d.ts +1 -2
- package/build/commands/secret/delete.js +3 -3
- package/build/commands/submit.d.ts +9 -10
- package/build/commands/submit.js +13 -14
- package/build/commands/update/delete.d.ts +1 -1
- package/build/commands/update/delete.js +3 -3
- package/build/commands/update/index.d.ts +9 -10
- package/build/commands/update/index.js +22 -14
- package/build/commands/update/view.d.ts +1 -1
- package/build/commands/update/view.js +3 -3
- package/build/commands/webhook/create.d.ts +3 -4
- package/build/commands/webhook/create.js +5 -5
- package/build/commands/webhook/delete.js +1 -1
- package/build/commands/webhook/list.d.ts +1 -2
- package/build/commands/webhook/list.js +3 -3
- package/build/commands/webhook/update.d.ts +4 -5
- package/build/commands/webhook/update.js +6 -6
- package/build/commands/webhook/view.js +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +2 -2
- package/build/project/expoSdk.js +2 -2
- package/build/project/metroConfig.js +2 -2
- package/build/project/publish.js +1 -3
- package/build/user/actions.js +2 -2
- package/build/utils/expoCli.d.ts +3 -1
- package/build/utils/expoCli.js +13 -11
- package/build/vcs/clients/git.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +16 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
5
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
6
6
|
const fs_extra_1 = (0, tslib_1.__importDefault)(require("fs-extra"));
|
|
7
7
|
const path_1 = (0, tslib_1.__importDefault)(require("path"));
|
|
@@ -26,7 +26,7 @@ const STAGE_DESCRIPTION = `Stage of the build you want to inspect.
|
|
|
26
26
|
post-build - builds the native project and leaves the output directory for inspection`;
|
|
27
27
|
class BuildInspect extends EasCommand_1.default {
|
|
28
28
|
async runAsync() {
|
|
29
|
-
const { flags } = this.parse(BuildInspect);
|
|
29
|
+
const { flags } = await this.parse(BuildInspect);
|
|
30
30
|
const outputDirectory = path_1.default.resolve(process.cwd(), flags.output);
|
|
31
31
|
await this.prepareOutputDirAsync(outputDirectory, flags.force);
|
|
32
32
|
if (flags.stage === InspectStage.ARCHIVE) {
|
|
@@ -99,31 +99,31 @@ class BuildInspect extends EasCommand_1.default {
|
|
|
99
99
|
exports.default = BuildInspect;
|
|
100
100
|
BuildInspect.description = 'Inspect the state of the project at specific build stages. Useful for troubleshooting.';
|
|
101
101
|
BuildInspect.flags = {
|
|
102
|
-
platform:
|
|
102
|
+
platform: core_1.Flags.enum({
|
|
103
103
|
char: 'p',
|
|
104
104
|
options: [platform_1.RequestedPlatform.Android, platform_1.RequestedPlatform.Ios],
|
|
105
105
|
required: true,
|
|
106
106
|
}),
|
|
107
|
-
profile:
|
|
107
|
+
profile: core_1.Flags.string({
|
|
108
108
|
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
109
109
|
helpValue: 'PROFILE_NAME',
|
|
110
110
|
}),
|
|
111
|
-
stage:
|
|
111
|
+
stage: core_1.Flags.enum({
|
|
112
112
|
char: 's',
|
|
113
113
|
description: STAGE_DESCRIPTION,
|
|
114
114
|
options: [InspectStage.ARCHIVE, InspectStage.PRE_BUILD, InspectStage.POST_BUILD],
|
|
115
115
|
required: true,
|
|
116
116
|
}),
|
|
117
|
-
output:
|
|
117
|
+
output: core_1.Flags.string({
|
|
118
118
|
description: 'Output directory.',
|
|
119
119
|
required: true,
|
|
120
120
|
helpValue: 'OUTPUT_DIRECTORY',
|
|
121
121
|
}),
|
|
122
|
-
force:
|
|
122
|
+
force: core_1.Flags.boolean({
|
|
123
123
|
description: 'Delete OUTPUT_DIRECTORY if it already exists.',
|
|
124
124
|
default: false,
|
|
125
125
|
}),
|
|
126
|
-
verbose:
|
|
126
|
+
verbose: core_1.Flags.boolean({
|
|
127
127
|
default: false,
|
|
128
128
|
}),
|
|
129
129
|
};
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { flags } from '@oclif/command';
|
|
2
1
|
import { BuildDistributionType, BuildStatus } from '../../build/types';
|
|
3
2
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
4
3
|
import { RequestedPlatform } from '../../platform';
|
|
5
4
|
export default class BuildList extends EasCommand {
|
|
6
5
|
static description: string;
|
|
7
6
|
static flags: {
|
|
8
|
-
platform:
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
status:
|
|
11
|
-
distribution:
|
|
12
|
-
channel:
|
|
13
|
-
appVersion:
|
|
14
|
-
appBuildVersion:
|
|
15
|
-
sdkVersion:
|
|
16
|
-
runtimeVersion:
|
|
17
|
-
appIdentifier:
|
|
18
|
-
buildProfile:
|
|
19
|
-
gitCommitHash:
|
|
20
|
-
limit: import("@oclif/
|
|
7
|
+
platform: import("@oclif/core/lib/interfaces").OptionFlag<RequestedPlatform>;
|
|
8
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
status: import("@oclif/core/lib/interfaces").OptionFlag<BuildStatus>;
|
|
10
|
+
distribution: import("@oclif/core/lib/interfaces").OptionFlag<BuildDistributionType>;
|
|
11
|
+
channel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
12
|
+
appVersion: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
13
|
+
appBuildVersion: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
14
|
+
sdkVersion: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
15
|
+
runtimeVersion: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
16
|
+
appIdentifier: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
17
|
+
buildProfile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
18
|
+
gitCommitHash: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
19
|
+
limit: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
|
|
21
20
|
};
|
|
22
21
|
runAsync(): Promise<void>;
|
|
23
22
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@oclif/core");
|
|
6
6
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
7
7
|
const types_1 = require("../../build/types");
|
|
8
8
|
const formatBuild_1 = require("../../build/utils/formatBuild");
|
|
@@ -16,7 +16,7 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
16
16
|
const json_1 = require("../../utils/json");
|
|
17
17
|
class BuildList extends EasCommand_1.default {
|
|
18
18
|
async runAsync() {
|
|
19
|
-
const { flags } = this.parse(BuildList);
|
|
19
|
+
const { flags } = await this.parse(BuildList);
|
|
20
20
|
const { json, platform: requestedPlatform, status: buildStatus, distribution: buildDistribution, limit = 10, } = flags;
|
|
21
21
|
if (json) {
|
|
22
22
|
(0, json_1.enableJsonOutput)();
|
|
@@ -76,13 +76,13 @@ class BuildList extends EasCommand_1.default {
|
|
|
76
76
|
exports.default = BuildList;
|
|
77
77
|
BuildList.description = 'list all builds for your project';
|
|
78
78
|
BuildList.flags = {
|
|
79
|
-
platform:
|
|
79
|
+
platform: core_1.Flags.enum({
|
|
80
80
|
options: [platform_1.RequestedPlatform.All, platform_1.RequestedPlatform.Android, platform_1.RequestedPlatform.Ios],
|
|
81
81
|
}),
|
|
82
|
-
json:
|
|
82
|
+
json: core_1.Flags.boolean({
|
|
83
83
|
description: 'Enable JSON output, non-JSON messages will be printed to stderr',
|
|
84
84
|
}),
|
|
85
|
-
status:
|
|
85
|
+
status: core_1.Flags.enum({
|
|
86
86
|
options: [
|
|
87
87
|
types_1.BuildStatus.NEW,
|
|
88
88
|
types_1.BuildStatus.IN_QUEUE,
|
|
@@ -92,22 +92,22 @@ BuildList.flags = {
|
|
|
92
92
|
types_1.BuildStatus.CANCELED,
|
|
93
93
|
],
|
|
94
94
|
}),
|
|
95
|
-
distribution:
|
|
95
|
+
distribution: core_1.Flags.enum({
|
|
96
96
|
options: [
|
|
97
97
|
types_1.BuildDistributionType.STORE,
|
|
98
98
|
types_1.BuildDistributionType.INTERNAL,
|
|
99
99
|
types_1.BuildDistributionType.SIMULATOR,
|
|
100
100
|
],
|
|
101
101
|
}),
|
|
102
|
-
channel:
|
|
103
|
-
appVersion:
|
|
104
|
-
appBuildVersion:
|
|
105
|
-
sdkVersion:
|
|
106
|
-
runtimeVersion:
|
|
107
|
-
appIdentifier:
|
|
108
|
-
buildProfile:
|
|
109
|
-
gitCommitHash:
|
|
110
|
-
limit:
|
|
102
|
+
channel: core_1.Flags.string(),
|
|
103
|
+
appVersion: core_1.Flags.string(),
|
|
104
|
+
appBuildVersion: core_1.Flags.string(),
|
|
105
|
+
sdkVersion: core_1.Flags.string(),
|
|
106
|
+
runtimeVersion: core_1.Flags.string(),
|
|
107
|
+
appIdentifier: core_1.Flags.string(),
|
|
108
|
+
buildProfile: core_1.Flags.string(),
|
|
109
|
+
gitCommitHash: core_1.Flags.string(),
|
|
110
|
+
limit: core_1.Flags.integer(),
|
|
111
111
|
};
|
|
112
112
|
const toAppPlatform = (requestedPlatform) => {
|
|
113
113
|
if (!requestedPlatform || requestedPlatform === platform_1.RequestedPlatform.All) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@oclif/core");
|
|
6
6
|
const formatBuild_1 = require("../../build/utils/formatBuild");
|
|
7
7
|
const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
|
|
8
8
|
const BuildQuery_1 = require("../../graphql/queries/BuildQuery");
|
|
@@ -12,7 +12,7 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
12
12
|
const json_1 = require("../../utils/json");
|
|
13
13
|
class BuildView extends EasCommand_1.default {
|
|
14
14
|
async runAsync() {
|
|
15
|
-
const { args: { BUILD_ID: buildId }, flags, } = this.parse(BuildView);
|
|
15
|
+
const { args: { BUILD_ID: buildId }, flags, } = await this.parse(BuildView);
|
|
16
16
|
if (flags.json) {
|
|
17
17
|
(0, json_1.enableJsonOutput)();
|
|
18
18
|
}
|
|
@@ -62,7 +62,7 @@ exports.default = BuildView;
|
|
|
62
62
|
BuildView.description = 'view a build for your project';
|
|
63
63
|
BuildView.args = [{ name: 'BUILD_ID' }];
|
|
64
64
|
BuildView.flags = {
|
|
65
|
-
json:
|
|
65
|
+
json: core_1.Flags.boolean({
|
|
66
66
|
description: 'Enable JSON output, non-JSON messages will be printed to stderr',
|
|
67
67
|
}),
|
|
68
68
|
};
|
|
@@ -13,7 +13,7 @@ export default class ChannelCreate extends EasCommand {
|
|
|
13
13
|
description: string;
|
|
14
14
|
}[];
|
|
15
15
|
static flags: {
|
|
16
|
-
json: import("@oclif/
|
|
16
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
};
|
|
18
18
|
runAsync(): Promise<void>;
|
|
19
19
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createUpdateChannelOnAppAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_1 = require("@expo/config");
|
|
6
|
-
const
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
7
7
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
8
8
|
const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
|
|
9
9
|
const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
|
|
@@ -40,7 +40,7 @@ async function createUpdateChannelOnAppAsync({ appId, channelName, branchId, })
|
|
|
40
40
|
exports.createUpdateChannelOnAppAsync = createUpdateChannelOnAppAsync;
|
|
41
41
|
class ChannelCreate extends EasCommand_1.default {
|
|
42
42
|
async runAsync() {
|
|
43
|
-
let { args: { name: channelName }, flags: { json: jsonFlag }, } = this.parse(ChannelCreate);
|
|
43
|
+
let { args: { name: channelName }, flags: { json: jsonFlag }, } = await this.parse(ChannelCreate);
|
|
44
44
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
45
45
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
46
46
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
@@ -112,7 +112,7 @@ ChannelCreate.args = [
|
|
|
112
112
|
},
|
|
113
113
|
];
|
|
114
114
|
ChannelCreate.flags = {
|
|
115
|
-
json:
|
|
115
|
+
json: core_1.Flags.boolean({
|
|
116
116
|
description: 'print output as a JSON object with the new channel ID, name and branch mapping.',
|
|
117
117
|
default: false,
|
|
118
118
|
}),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { flags } from '@oclif/command';
|
|
2
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
3
2
|
import { UpdateChannelBranchMappingMutationVariables } from '../../graphql/generated';
|
|
4
3
|
export declare function updateChannelBranchMappingAsync({ channelId, branchMapping, }: UpdateChannelBranchMappingMutationVariables): Promise<{
|
|
@@ -14,8 +13,8 @@ export default class ChannelEdit extends EasCommand {
|
|
|
14
13
|
description: string;
|
|
15
14
|
}[];
|
|
16
15
|
static flags: {
|
|
17
|
-
branch:
|
|
18
|
-
json: import("@oclif/
|
|
16
|
+
branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
17
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
19
18
|
};
|
|
20
19
|
runAsync(): Promise<void>;
|
|
21
20
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.updateChannelBranchMappingAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_1 = require("@expo/config");
|
|
6
|
-
const
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
7
7
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
8
8
|
const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
|
|
9
9
|
const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
|
|
@@ -61,7 +61,7 @@ async function updateChannelBranchMappingAsync({ channelId, branchMapping, }) {
|
|
|
61
61
|
exports.updateChannelBranchMappingAsync = updateChannelBranchMappingAsync;
|
|
62
62
|
class ChannelEdit extends EasCommand_1.default {
|
|
63
63
|
async runAsync() {
|
|
64
|
-
let { args: { name: channelName }, flags: { branch: branchName, json: jsonFlag }, } = this.parse(ChannelEdit);
|
|
64
|
+
let { args: { name: channelName }, flags: { branch: branchName, json: jsonFlag }, } = await this.parse(ChannelEdit);
|
|
65
65
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
66
66
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
67
67
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
@@ -121,10 +121,10 @@ ChannelEdit.args = [
|
|
|
121
121
|
},
|
|
122
122
|
];
|
|
123
123
|
ChannelEdit.flags = {
|
|
124
|
-
branch:
|
|
124
|
+
branch: core_1.Flags.string({
|
|
125
125
|
description: 'Name of the branch to point to',
|
|
126
126
|
}),
|
|
127
|
-
json:
|
|
127
|
+
json: core_1.Flags.boolean({
|
|
128
128
|
description: 'print output as a JSON object with the channel ID, name and branch mapping.',
|
|
129
129
|
default: false,
|
|
130
130
|
}),
|
|
@@ -2,7 +2,7 @@ import EasCommand from '../../commandUtils/EasCommand';
|
|
|
2
2
|
export default class ChannelList extends EasCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
json: import("@oclif/
|
|
5
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
6
6
|
};
|
|
7
7
|
runAsync(): Promise<void>;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@oclif/core");
|
|
6
6
|
const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
|
|
7
7
|
const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
|
|
8
8
|
const client_1 = require("../../graphql/client");
|
|
@@ -53,7 +53,7 @@ async function getAllUpdateChannelForAppAsync({ appId, }) {
|
|
|
53
53
|
class ChannelList extends EasCommand_1.default {
|
|
54
54
|
async runAsync() {
|
|
55
55
|
var _a;
|
|
56
|
-
const { flags: { json: jsonFlag }, } = this.parse(ChannelList);
|
|
56
|
+
const { flags: { json: jsonFlag }, } = await this.parse(ChannelList);
|
|
57
57
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
58
58
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
59
59
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
@@ -81,7 +81,7 @@ class ChannelList extends EasCommand_1.default {
|
|
|
81
81
|
exports.default = ChannelList;
|
|
82
82
|
ChannelList.description = 'List all channels on the current project.';
|
|
83
83
|
ChannelList.flags = {
|
|
84
|
-
json:
|
|
84
|
+
json: core_1.Flags.boolean({
|
|
85
85
|
description: 'print output as a JSON object with the channel ID, name and branch mapping.',
|
|
86
86
|
default: false,
|
|
87
87
|
}),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { flags } from '@oclif/command';
|
|
2
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
3
2
|
export default class ChannelRollout extends EasCommand {
|
|
4
3
|
static hidden: boolean;
|
|
@@ -9,10 +8,10 @@ export default class ChannelRollout extends EasCommand {
|
|
|
9
8
|
description: string;
|
|
10
9
|
}[];
|
|
11
10
|
static flags: {
|
|
12
|
-
branch:
|
|
13
|
-
percent: import("@oclif/
|
|
14
|
-
end: import("@oclif/
|
|
15
|
-
json: import("@oclif/
|
|
11
|
+
branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
12
|
+
percent: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
|
|
13
|
+
end: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
15
|
};
|
|
17
16
|
runAsync(): Promise<void>;
|
|
18
17
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@oclif/core");
|
|
6
6
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
7
7
|
const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
|
|
8
8
|
const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
|
|
@@ -165,8 +165,7 @@ async function endRolloutAsync({ channelName, branchName, jsonFlag, projectId, g
|
|
|
165
165
|
class ChannelRollout extends EasCommand_1.default {
|
|
166
166
|
async runAsync() {
|
|
167
167
|
var _a, _b;
|
|
168
|
-
const { args: { channel: channelName }, flags: { json: jsonFlag, end: endFlag }, } = this.parse(ChannelRollout);
|
|
169
|
-
const { flags: { branch: branchName, percent }, } = this.parse(ChannelRollout);
|
|
168
|
+
const { args: { channel: channelName }, flags: { json: jsonFlag, end: endFlag, branch: branchName, percent }, } = await this.parse(ChannelRollout);
|
|
170
169
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
171
170
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
172
171
|
const fullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
|
|
@@ -246,19 +245,19 @@ ChannelRollout.args = [
|
|
|
246
245
|
},
|
|
247
246
|
];
|
|
248
247
|
ChannelRollout.flags = {
|
|
249
|
-
branch:
|
|
248
|
+
branch: core_1.Flags.string({
|
|
250
249
|
description: 'branch to rollout',
|
|
251
250
|
required: false,
|
|
252
251
|
}),
|
|
253
|
-
percent:
|
|
252
|
+
percent: core_1.Flags.integer({
|
|
254
253
|
description: 'percent of traffic to redirect to the new branch',
|
|
255
254
|
required: false,
|
|
256
255
|
}),
|
|
257
|
-
end:
|
|
256
|
+
end: core_1.Flags.boolean({
|
|
258
257
|
description: 'end the rollout',
|
|
259
258
|
default: false,
|
|
260
259
|
}),
|
|
261
|
-
json:
|
|
260
|
+
json: core_1.Flags.boolean({
|
|
262
261
|
description: 'print output as a JSON object with the new channel ID, name and branch mapping',
|
|
263
262
|
default: false,
|
|
264
263
|
}),
|
|
@@ -42,7 +42,7 @@ export default class ChannelView extends EasCommand {
|
|
|
42
42
|
description: string;
|
|
43
43
|
}[];
|
|
44
44
|
static flags: {
|
|
45
|
-
json: import("@oclif/
|
|
45
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
46
46
|
};
|
|
47
47
|
runAsync(): Promise<void>;
|
|
48
48
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.logChannelDetails = exports.getUpdateChannelByNameForAppAsync = exports.getBranchMapping = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_1 = require("@expo/config");
|
|
6
|
-
const
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
7
7
|
const assert_1 = (0, tslib_1.__importDefault)(require("assert"));
|
|
8
8
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
9
9
|
const cli_table3_1 = (0, tslib_1.__importDefault)(require("cli-table3"));
|
|
@@ -146,7 +146,7 @@ exports.logChannelDetails = logChannelDetails;
|
|
|
146
146
|
class ChannelView extends EasCommand_1.default {
|
|
147
147
|
async runAsync() {
|
|
148
148
|
var _a;
|
|
149
|
-
let { args: { name: channelName }, flags: { json: jsonFlag }, } = this.parse(ChannelView);
|
|
149
|
+
let { args: { name: channelName }, flags: { json: jsonFlag }, } = await this.parse(ChannelView);
|
|
150
150
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
151
151
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
152
152
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
@@ -195,7 +195,7 @@ ChannelView.args = [
|
|
|
195
195
|
},
|
|
196
196
|
];
|
|
197
197
|
ChannelView.flags = {
|
|
198
|
-
json:
|
|
198
|
+
json: core_1.Flags.boolean({
|
|
199
199
|
description: 'print output as a JSON object with the channel ID, name and branch mapping.',
|
|
200
200
|
default: false,
|
|
201
201
|
}),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { flags } from '@oclif/command';
|
|
2
1
|
import EasCommand from '../commandUtils/EasCommand';
|
|
3
2
|
export default class Config extends EasCommand {
|
|
4
3
|
static description: string;
|
|
5
4
|
static flags: {
|
|
6
|
-
platform:
|
|
7
|
-
profile:
|
|
5
|
+
platform: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
8
7
|
};
|
|
9
8
|
protected requiresAuthentication: boolean;
|
|
10
9
|
runAsync(): Promise<void>;
|
package/build/commands/config.js
CHANGED
|
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const eas_json_1 = require("@expo/eas-json");
|
|
7
|
-
const
|
|
7
|
+
const core_1 = require("@oclif/core");
|
|
8
8
|
const EasCommand_1 = (0, tslib_1.__importDefault)(require("../commandUtils/EasCommand"));
|
|
9
9
|
const log_1 = (0, tslib_1.__importDefault)(require("../log"));
|
|
10
10
|
const expoConfig_1 = require("../project/expoConfig");
|
|
@@ -17,7 +17,7 @@ class Config extends EasCommand_1.default {
|
|
|
17
17
|
this.requiresAuthentication = false;
|
|
18
18
|
}
|
|
19
19
|
async runAsync() {
|
|
20
|
-
const { flags } = this.parse(Config);
|
|
20
|
+
const { flags } = await this.parse(Config);
|
|
21
21
|
const { platform: maybePlatform, profile: maybeProfile } = flags;
|
|
22
22
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
23
23
|
await (0, build_1.handleDeprecatedEasJsonAsync)(projectDir, false);
|
|
@@ -51,6 +51,6 @@ class Config extends EasCommand_1.default {
|
|
|
51
51
|
exports.default = Config;
|
|
52
52
|
Config.description = 'show the eas.json config';
|
|
53
53
|
Config.flags = {
|
|
54
|
-
platform:
|
|
55
|
-
profile:
|
|
54
|
+
platform: core_1.Flags.enum({ char: 'p', options: ['android', 'ios'] }),
|
|
55
|
+
profile: core_1.Flags.string(),
|
|
56
56
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { flags } from '@oclif/command';
|
|
2
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
3
2
|
export default class BuildList extends EasCommand {
|
|
4
3
|
static description: string;
|
|
5
4
|
static flags: {
|
|
6
|
-
'apple-team-id':
|
|
5
|
+
'apple-team-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
6
|
};
|
|
8
7
|
runAsync(): Promise<void>;
|
|
9
8
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@oclif/core");
|
|
6
6
|
const assert_1 = (0, tslib_1.__importDefault)(require("assert"));
|
|
7
7
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
8
8
|
const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
|
|
@@ -15,7 +15,7 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
15
15
|
const prompts_1 = require("../../prompts");
|
|
16
16
|
class BuildList extends EasCommand_1.default {
|
|
17
17
|
async runAsync() {
|
|
18
|
-
let appleTeamIdentifier = this.parse(BuildList).flags['apple-team-id'];
|
|
18
|
+
let appleTeamIdentifier = (await this.parse(BuildList)).flags['apple-team-id'];
|
|
19
19
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
20
20
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
21
21
|
const accountName = await (0, projectUtils_1.getProjectAccountNameAsync)(exp);
|
|
@@ -78,5 +78,5 @@ class BuildList extends EasCommand_1.default {
|
|
|
78
78
|
exports.default = BuildList;
|
|
79
79
|
BuildList.description = 'list all registered devices for your account';
|
|
80
80
|
BuildList.flags = {
|
|
81
|
-
'apple-team-id':
|
|
81
|
+
'apple-team-id': core_1.Flags.string(),
|
|
82
82
|
};
|
|
@@ -10,7 +10,7 @@ const ora_1 = require("../../ora");
|
|
|
10
10
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
11
11
|
class DeviceView extends EasCommand_1.default {
|
|
12
12
|
async runAsync() {
|
|
13
|
-
const { UDID } = this.parse(DeviceView).args;
|
|
13
|
+
const { UDID } = (await this.parse(DeviceView)).args;
|
|
14
14
|
if (!UDID) {
|
|
15
15
|
log_1.default.log(`The device UDID is required to view a specific device. For example:
|
|
16
16
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { flags } from '@oclif/command';
|
|
2
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
3
2
|
import { EnvironmentSecretScope } from '../../graphql/queries/EnvironmentSecretsQuery';
|
|
4
3
|
export default class EnvironmentSecretCreate extends EasCommand {
|
|
5
4
|
static description: string;
|
|
6
5
|
static flags: {
|
|
7
|
-
scope:
|
|
8
|
-
name:
|
|
9
|
-
value:
|
|
10
|
-
force: import("@oclif/
|
|
6
|
+
scope: import("@oclif/core/lib/interfaces").OptionFlag<EnvironmentSecretScope>;
|
|
7
|
+
name: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
8
|
+
value: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
9
|
+
force: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
10
|
};
|
|
12
11
|
runAsync(): Promise<void>;
|
|
13
12
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@oclif/core");
|
|
6
6
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
7
7
|
const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
|
|
8
8
|
const EnvironmentSecretMutation_1 = require("../../graphql/mutations/EnvironmentSecretMutation");
|
|
@@ -16,7 +16,7 @@ const actions_1 = require("../../user/actions");
|
|
|
16
16
|
class EnvironmentSecretCreate extends EasCommand_1.default {
|
|
17
17
|
async runAsync() {
|
|
18
18
|
const actor = await (0, actions_1.ensureLoggedInAsync)();
|
|
19
|
-
let { flags: { name, value: secretValue, scope, force }, } = this.parse(EnvironmentSecretCreate);
|
|
19
|
+
let { flags: { name, value: secretValue, scope, force }, } = await this.parse(EnvironmentSecretCreate);
|
|
20
20
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
21
21
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
22
22
|
const accountName = await (0, projectUtils_1.getProjectAccountNameAsync)(exp);
|
|
@@ -108,18 +108,18 @@ class EnvironmentSecretCreate extends EasCommand_1.default {
|
|
|
108
108
|
exports.default = EnvironmentSecretCreate;
|
|
109
109
|
EnvironmentSecretCreate.description = 'Create an environment secret on the current project or owner account.';
|
|
110
110
|
EnvironmentSecretCreate.flags = {
|
|
111
|
-
scope:
|
|
111
|
+
scope: core_1.Flags.enum({
|
|
112
112
|
description: 'Scope for the secret',
|
|
113
113
|
options: [EnvironmentSecretsQuery_1.EnvironmentSecretScope.ACCOUNT, EnvironmentSecretsQuery_1.EnvironmentSecretScope.PROJECT],
|
|
114
114
|
default: EnvironmentSecretsQuery_1.EnvironmentSecretScope.PROJECT,
|
|
115
115
|
}),
|
|
116
|
-
name:
|
|
116
|
+
name: core_1.Flags.string({
|
|
117
117
|
description: 'Name of the secret',
|
|
118
118
|
}),
|
|
119
|
-
value:
|
|
119
|
+
value: core_1.Flags.string({
|
|
120
120
|
description: 'Value of the secret',
|
|
121
121
|
}),
|
|
122
|
-
force:
|
|
122
|
+
force: core_1.Flags.boolean({
|
|
123
123
|
description: 'Delete and recreate existing secrets',
|
|
124
124
|
default: false,
|
|
125
125
|
}),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { flags } from '@oclif/command';
|
|
2
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
3
2
|
export default class EnvironmentSecretDelete extends EasCommand {
|
|
4
3
|
static description: string;
|
|
5
4
|
static flags: {
|
|
6
|
-
id:
|
|
5
|
+
id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
6
|
};
|
|
8
7
|
runAsync(): Promise<void>;
|
|
9
8
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@oclif/core");
|
|
6
6
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
7
7
|
const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
|
|
8
8
|
const EnvironmentSecretMutation_1 = require("../../graphql/mutations/EnvironmentSecretMutation");
|
|
@@ -16,7 +16,7 @@ class EnvironmentSecretDelete extends EasCommand_1.default {
|
|
|
16
16
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
17
17
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
18
18
|
const projectAccountName = await (0, projectUtils_1.getProjectAccountNameAsync)(exp);
|
|
19
|
-
let { flags: { id }, } = this.parse(EnvironmentSecretDelete);
|
|
19
|
+
let { flags: { id }, } = await this.parse(EnvironmentSecretDelete);
|
|
20
20
|
let secret;
|
|
21
21
|
if (!id) {
|
|
22
22
|
const validationMessage = 'You must select which secret to delete.';
|
|
@@ -55,7 +55,7 @@ exports.default = EnvironmentSecretDelete;
|
|
|
55
55
|
EnvironmentSecretDelete.description = `Delete an environment secret by ID.
|
|
56
56
|
Unsure where to find the secret's ID? Run ${chalk_1.default.bold('eas secret:list')}`;
|
|
57
57
|
EnvironmentSecretDelete.flags = {
|
|
58
|
-
id:
|
|
58
|
+
id: core_1.Flags.string({
|
|
59
59
|
description: 'ID of the secret to delete',
|
|
60
60
|
}),
|
|
61
61
|
};
|