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
package/bin/run
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
require('@oclif/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.catch(require('@oclif/errors/handle'));
|
|
3
|
+
const oclif = require('@oclif/core')
|
|
4
|
+
|
|
5
|
+
oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))
|
package/build/build/configure.js
CHANGED
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const config_1 = require("@expo/config");
|
|
6
6
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
7
7
|
const eas_json_1 = require("@expo/eas-json");
|
|
8
|
-
const
|
|
8
|
+
const core_1 = require("@oclif/core");
|
|
9
9
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
10
10
|
const fs_extra_1 = (0, tslib_1.__importDefault)(require("fs-extra"));
|
|
11
11
|
const log_1 = (0, tslib_1.__importStar)(require("../log"));
|
|
@@ -35,11 +35,11 @@ async function ensureProjectConfiguredAsync(projectDir, requestedPlatform) {
|
|
|
35
35
|
platform: requestedPlatform,
|
|
36
36
|
});
|
|
37
37
|
if (await (0, vcs_1.getVcsClient)().isCommitRequiredAsync()) {
|
|
38
|
-
|
|
38
|
+
core_1.Errors.error('Build process requires clean working tree, please commit all your changes and run `eas build` again', { exit: 1 });
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
|
-
|
|
42
|
+
core_1.Errors.error(`Aborting, please run ${chalk_1.default.bold('eas build:configure')} or create eas.json (${(0, log_1.learnMore)('https://docs.expo.dev/build/eas-json')})`, { exit: 1 });
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.ensureProjectConfiguredAsync = ensureProjectConfiguredAsync;
|
package/build/build/local.js
CHANGED
|
@@ -6,7 +6,7 @@ const spawn_async_1 = (0, tslib_1.__importDefault)(require("@expo/spawn-async"))
|
|
|
6
6
|
const semver_1 = (0, tslib_1.__importDefault)(require("semver"));
|
|
7
7
|
const ora_1 = require("../ora");
|
|
8
8
|
const PLUGIN_PACKAGE_NAME = 'eas-cli-local-build-plugin';
|
|
9
|
-
const PLUGIN_PACKAGE_VERSION = '0.0.
|
|
9
|
+
const PLUGIN_PACKAGE_VERSION = '0.0.57';
|
|
10
10
|
async function runLocalBuildAsync(job, options) {
|
|
11
11
|
var _a;
|
|
12
12
|
const { command, args } = await getCommandAndArgsAsync(job);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ensureExpoDevClientInstalledForDevClientBuildsAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
|
-
const
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
7
7
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
8
8
|
const resolve_from_1 = (0, tslib_1.__importDefault)(require("resolve-from"));
|
|
9
9
|
const AppPlatform_1 = require("../../graphql/types/AppPlatform");
|
|
@@ -40,7 +40,7 @@ async function ensureExpoDevClientInstalledForDevClientBuildsAsync({ projectDir,
|
|
|
40
40
|
await installExpoDevClientAsync(projectDir, { nonInteractive });
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
|
-
|
|
43
|
+
core_1.Errors.error(`Install ${chalk_1.default.bold('expo-dev-client')} manually and come back later.`, {
|
|
44
44
|
exit: 1,
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -58,7 +58,7 @@ async function ensureExpoDevClientInstalledForDevClientBuildsAsync({ projectDir,
|
|
|
58
58
|
initial: false,
|
|
59
59
|
});
|
|
60
60
|
if (!shouldContinue) {
|
|
61
|
-
|
|
61
|
+
core_1.Errors.error('Come back later', { exit: 1 });
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Command } from '@oclif/
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
2
|
export default abstract class EasCommand extends Command {
|
|
3
3
|
/**
|
|
4
4
|
* When user data is unavailable locally, determines if the command will
|
|
5
5
|
* force the user to log in
|
|
6
6
|
*/
|
|
7
7
|
protected requiresAuthentication: boolean;
|
|
8
|
+
protected mustBeRunInsideProject: boolean;
|
|
8
9
|
protected abstract runAsync(): Promise<any>;
|
|
9
10
|
run(): Promise<any>;
|
|
10
11
|
finally(err: Error): Promise<any>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const eas_json_1 = require("@expo/eas-json");
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@oclif/core");
|
|
6
6
|
const semver_1 = (0, tslib_1.__importDefault)(require("semver"));
|
|
7
7
|
const rudderstackClient_1 = require("../analytics/rudderstackClient");
|
|
8
8
|
const projectUtils_1 = require("../project/projectUtils");
|
|
@@ -11,7 +11,7 @@ const actions_1 = require("../user/actions");
|
|
|
11
11
|
const easCli_1 = require("../utils/easCli");
|
|
12
12
|
const vcs_1 = require("../vcs");
|
|
13
13
|
const git_1 = (0, tslib_1.__importDefault)(require("../vcs/clients/git"));
|
|
14
|
-
class EasCommand extends
|
|
14
|
+
class EasCommand extends core_1.Command {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
17
|
/**
|
|
@@ -19,14 +19,17 @@ class EasCommand extends command_1.Command {
|
|
|
19
19
|
* force the user to log in
|
|
20
20
|
*/
|
|
21
21
|
this.requiresAuthentication = true;
|
|
22
|
+
this.mustBeRunInsideProject = true;
|
|
22
23
|
}
|
|
23
24
|
// eslint-disable-next-line async-protect/async-suffix
|
|
24
25
|
async run() {
|
|
25
26
|
var _a;
|
|
26
27
|
await (0, rudderstackClient_1.initAsync)();
|
|
27
|
-
|
|
28
|
+
if (this.mustBeRunInsideProject) {
|
|
29
|
+
await this.applyCliConfigAsync();
|
|
30
|
+
}
|
|
28
31
|
if (this.requiresAuthentication) {
|
|
29
|
-
const { flags } = this.parse();
|
|
32
|
+
const { flags } = await this.parse();
|
|
30
33
|
const nonInteractive = (_a = flags['non-interactive']) !== null && _a !== void 0 ? _a : false;
|
|
31
34
|
await (0, actions_1.ensureLoggedInAsync)({ nonInteractive });
|
|
32
35
|
}
|
|
@@ -2,6 +2,7 @@ import EasCommand from '../../commandUtils/EasCommand';
|
|
|
2
2
|
export default class AccountLogin extends EasCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static aliases: string[];
|
|
5
|
+
protected mustBeRunInsideProject: boolean;
|
|
5
6
|
protected requiresAuthentication: boolean;
|
|
6
7
|
runAsync(): Promise<void>;
|
|
7
8
|
}
|
|
@@ -2,6 +2,7 @@ import EasCommand from '../../commandUtils/EasCommand';
|
|
|
2
2
|
export default class AccountLogout extends EasCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static aliases: string[];
|
|
5
|
+
protected mustBeRunInsideProject: boolean;
|
|
5
6
|
protected requiresAuthentication: boolean;
|
|
6
7
|
runAsync(): Promise<void>;
|
|
7
8
|
}
|
|
@@ -2,6 +2,7 @@ import EasCommand from '../../commandUtils/EasCommand';
|
|
|
2
2
|
export default class AccountView extends EasCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static aliases: string[];
|
|
5
|
+
protected mustBeRunInsideProject: boolean;
|
|
5
6
|
protected requiresAuthentication: boolean;
|
|
6
7
|
runAsync(): Promise<void>;
|
|
7
8
|
}
|
|
@@ -10,7 +10,7 @@ class AnalyticsView extends EasCommand_1.default {
|
|
|
10
10
|
this.requiresAuthentication = false;
|
|
11
11
|
}
|
|
12
12
|
async runAsync() {
|
|
13
|
-
const { STATUS: status } = this.parse(AnalyticsView).args;
|
|
13
|
+
const { STATUS: status } = (await this.parse(AnalyticsView)).args;
|
|
14
14
|
if (status) {
|
|
15
15
|
await UserSettings_1.default.setAsync('analyticsEnabled', status === 'on');
|
|
16
16
|
log_1.default.withTick(`${status === 'on' ? 'Enabling' : 'Disabling'} analytics.`);
|
|
@@ -9,7 +9,7 @@ export default class BranchCreate extends EasCommand {
|
|
|
9
9
|
description: string;
|
|
10
10
|
}[];
|
|
11
11
|
static flags: {
|
|
12
|
-
json: import("@oclif/
|
|
12
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
13
|
};
|
|
14
14
|
runAsync(): Promise<void>;
|
|
15
15
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createUpdateBranchOnAppAsync = 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"));
|
|
@@ -37,7 +37,7 @@ async function createUpdateBranchOnAppAsync({ appId, name, }) {
|
|
|
37
37
|
exports.createUpdateBranchOnAppAsync = createUpdateBranchOnAppAsync;
|
|
38
38
|
class BranchCreate extends EasCommand_1.default {
|
|
39
39
|
async runAsync() {
|
|
40
|
-
let { args: { name }, flags, } = this.parse(BranchCreate);
|
|
40
|
+
let { args: { name }, flags, } = await this.parse(BranchCreate);
|
|
41
41
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
42
42
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
43
43
|
const fullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
|
|
@@ -74,7 +74,7 @@ BranchCreate.args = [
|
|
|
74
74
|
},
|
|
75
75
|
];
|
|
76
76
|
BranchCreate.flags = {
|
|
77
|
-
json:
|
|
77
|
+
json: core_1.Flags.boolean({
|
|
78
78
|
description: 'return a json with the new branch ID and name.',
|
|
79
79
|
default: false,
|
|
80
80
|
}),
|
|
@@ -7,7 +7,7 @@ export default class BranchDelete extends EasCommand {
|
|
|
7
7
|
description: string;
|
|
8
8
|
}[];
|
|
9
9
|
static flags: {
|
|
10
|
-
json: import("@oclif/
|
|
10
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
runAsync(): Promise<void>;
|
|
13
13
|
}
|
|
@@ -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 graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
|
|
8
8
|
const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
|
|
@@ -50,7 +50,7 @@ async function deleteBranchOnAppAsync({ branchId, }) {
|
|
|
50
50
|
class BranchDelete extends EasCommand_1.default {
|
|
51
51
|
async runAsync() {
|
|
52
52
|
var _a, _b;
|
|
53
|
-
let { args: { name }, flags: { json: jsonFlag }, } = this.parse(BranchDelete);
|
|
53
|
+
let { args: { name }, flags: { json: jsonFlag }, } = await this.parse(BranchDelete);
|
|
54
54
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
55
55
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
56
56
|
const fullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
|
|
@@ -102,7 +102,7 @@ BranchDelete.args = [
|
|
|
102
102
|
},
|
|
103
103
|
];
|
|
104
104
|
BranchDelete.flags = {
|
|
105
|
-
json:
|
|
105
|
+
json: core_1.Flags.boolean({
|
|
106
106
|
description: `return JSON with the edited branch's ID and name.`,
|
|
107
107
|
default: false,
|
|
108
108
|
}),
|
|
@@ -6,7 +6,7 @@ export declare function listBranchesAsync({ projectId, }: {
|
|
|
6
6
|
export default class BranchList extends EasCommand {
|
|
7
7
|
static description: string;
|
|
8
8
|
static flags: {
|
|
9
|
-
json: import("@oclif/
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
10
|
};
|
|
11
11
|
runAsync(): Promise<void>;
|
|
12
12
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.listBranchesAsync = 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 cli_table3_1 = (0, tslib_1.__importDefault)(require("cli-table3"));
|
|
9
9
|
const graphql_1 = require("graphql");
|
|
@@ -41,7 +41,7 @@ async function listBranchesAsync({ projectId, }) {
|
|
|
41
41
|
exports.listBranchesAsync = listBranchesAsync;
|
|
42
42
|
class BranchList extends EasCommand_1.default {
|
|
43
43
|
async runAsync() {
|
|
44
|
-
const { flags } = this.parse(BranchList);
|
|
44
|
+
const { flags } = await this.parse(BranchList);
|
|
45
45
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
46
46
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
47
47
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
@@ -79,7 +79,7 @@ class BranchList extends EasCommand_1.default {
|
|
|
79
79
|
exports.default = BranchList;
|
|
80
80
|
BranchList.description = 'List all branches on this project.';
|
|
81
81
|
BranchList.flags = {
|
|
82
|
-
json:
|
|
82
|
+
json: core_1.Flags.boolean({
|
|
83
83
|
description: 'return output as JSON',
|
|
84
84
|
default: false,
|
|
85
85
|
}),
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { flags } from '@oclif/command';
|
|
2
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
3
2
|
export default class BranchRename extends EasCommand {
|
|
4
3
|
static description: string;
|
|
5
4
|
static flags: {
|
|
6
|
-
from:
|
|
7
|
-
to:
|
|
8
|
-
json: import("@oclif/
|
|
5
|
+
from: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
6
|
+
to: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
8
|
};
|
|
10
9
|
runAsync(): Promise<void>;
|
|
11
10
|
}
|
|
@@ -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 graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
|
|
8
8
|
const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
|
|
@@ -33,7 +33,7 @@ async function renameUpdateBranchOnAppAsync({ appId, name, newName, }) {
|
|
|
33
33
|
}
|
|
34
34
|
class BranchRename extends EasCommand_1.default {
|
|
35
35
|
async runAsync() {
|
|
36
|
-
let { flags: { json: jsonFlag, from: currentName, to: newName }, } = this.parse(BranchRename);
|
|
36
|
+
let { flags: { json: jsonFlag, from: currentName, to: newName }, } = await this.parse(BranchRename);
|
|
37
37
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
38
38
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
39
39
|
const fullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
|
|
@@ -77,15 +77,15 @@ class BranchRename extends EasCommand_1.default {
|
|
|
77
77
|
exports.default = BranchRename;
|
|
78
78
|
BranchRename.description = 'Rename a branch.';
|
|
79
79
|
BranchRename.flags = {
|
|
80
|
-
from:
|
|
80
|
+
from: core_1.Flags.string({
|
|
81
81
|
description: 'current name of the branch.',
|
|
82
82
|
required: false,
|
|
83
83
|
}),
|
|
84
|
-
to:
|
|
84
|
+
to: core_1.Flags.string({
|
|
85
85
|
description: 'new name of the branch.',
|
|
86
86
|
required: false,
|
|
87
87
|
}),
|
|
88
|
-
json:
|
|
88
|
+
json: core_1.Flags.boolean({
|
|
89
89
|
description: `return a json with the edited branch's ID and name.`,
|
|
90
90
|
default: false,
|
|
91
91
|
}),
|
|
@@ -9,7 +9,7 @@ export default class BranchView extends EasCommand {
|
|
|
9
9
|
description: string;
|
|
10
10
|
}[];
|
|
11
11
|
static flags: {
|
|
12
|
-
json: import("@oclif/
|
|
12
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
13
|
};
|
|
14
14
|
runAsync(): Promise<void>;
|
|
15
15
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.viewUpdateBranchAsync = 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 cli_table3_1 = (0, tslib_1.__importDefault)(require("cli-table3"));
|
|
9
9
|
const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
|
|
@@ -59,7 +59,7 @@ async function viewUpdateBranchAsync({ appId, name, }) {
|
|
|
59
59
|
exports.viewUpdateBranchAsync = viewUpdateBranchAsync;
|
|
60
60
|
class BranchView extends EasCommand_1.default {
|
|
61
61
|
async runAsync() {
|
|
62
|
-
let { args: { name }, flags: { json: jsonFlag }, } = this.parse(BranchView);
|
|
62
|
+
let { args: { name }, flags: { json: jsonFlag }, } = await this.parse(BranchView);
|
|
63
63
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
64
64
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
65
65
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
@@ -124,7 +124,7 @@ BranchView.args = [
|
|
|
124
124
|
},
|
|
125
125
|
];
|
|
126
126
|
BranchView.flags = {
|
|
127
|
-
json:
|
|
127
|
+
json: core_1.Flags.boolean({
|
|
128
128
|
description: `return a json with the branch's ID name and recent update groups.`,
|
|
129
129
|
default: false,
|
|
130
130
|
}),
|
|
@@ -90,7 +90,7 @@ async function ensureBuildExistsAsync(buildId) {
|
|
|
90
90
|
}
|
|
91
91
|
class BuildCancel extends EasCommand_1.default {
|
|
92
92
|
async runAsync() {
|
|
93
|
-
const { BUILD_ID: buildIdFromArg } = this.parse(BuildCancel).args;
|
|
93
|
+
const { BUILD_ID: buildIdFromArg } = (await this.parse(BuildCancel)).args;
|
|
94
94
|
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
95
95
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
96
96
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { flags } from '@oclif/command';
|
|
2
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
3
2
|
export default class BuildConfigure extends EasCommand {
|
|
4
3
|
static description: string;
|
|
5
4
|
static flags: {
|
|
6
|
-
platform:
|
|
5
|
+
platform: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
7
6
|
};
|
|
8
7
|
runAsync(): Promise<void>;
|
|
9
8
|
}
|
|
@@ -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 configure_1 = require("../../build/configure");
|
|
7
7
|
const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
|
|
@@ -13,7 +13,7 @@ const vcs_1 = require("../../vcs");
|
|
|
13
13
|
class BuildConfigure extends EasCommand_1.default {
|
|
14
14
|
async runAsync() {
|
|
15
15
|
var _a;
|
|
16
|
-
const { flags } = this.parse(BuildConfigure);
|
|
16
|
+
const { flags } = await this.parse(BuildConfigure);
|
|
17
17
|
log_1.default.log('💡 The following process will configure your iOS and/or Android project to be compatible with EAS Build. These changes only apply to your local project files and you can safely revert them at any time.');
|
|
18
18
|
log_1.default.newLine();
|
|
19
19
|
await (0, vcs_1.getVcsClient)().ensureRepoExistsAsync();
|
|
@@ -29,7 +29,7 @@ class BuildConfigure extends EasCommand_1.default {
|
|
|
29
29
|
exports.default = BuildConfigure;
|
|
30
30
|
BuildConfigure.description = 'Configure the project to support EAS Build.';
|
|
31
31
|
BuildConfigure.flags = {
|
|
32
|
-
platform:
|
|
32
|
+
platform: core_1.Flags.enum({
|
|
33
33
|
description: 'Platform to configure',
|
|
34
34
|
char: 'p',
|
|
35
35
|
options: ['android', 'ios', 'all'],
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { flags } from '@oclif/command';
|
|
2
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
3
2
|
export default class Build extends EasCommand {
|
|
4
3
|
static description: string;
|
|
5
4
|
static flags: {
|
|
6
|
-
platform:
|
|
7
|
-
'skip-credentials-check': import("@oclif/
|
|
8
|
-
json: import("@oclif/
|
|
9
|
-
'skip-project-configuration': import("@oclif/
|
|
10
|
-
profile:
|
|
11
|
-
'non-interactive': import("@oclif/
|
|
12
|
-
local: import("@oclif/
|
|
13
|
-
wait: import("@oclif/
|
|
14
|
-
'clear-cache': import("@oclif/
|
|
15
|
-
'auto-submit': import("@oclif/
|
|
16
|
-
'auto-submit-with-profile':
|
|
5
|
+
platform: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
'skip-credentials-check': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
'skip-project-configuration': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
10
|
+
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
local: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
wait: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
|
+
'clear-cache': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
'auto-submit': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
|
+
'auto-submit-with-profile': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
17
16
|
};
|
|
18
17
|
runAsync(): Promise<void>;
|
|
19
18
|
private sanitizeFlagsAsync;
|
|
@@ -3,8 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.handleDeprecatedEasJsonAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
|
-
const
|
|
7
|
-
const errors_1 = require("@oclif/errors");
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
8
7
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
9
8
|
const figures_1 = (0, tslib_1.__importDefault)(require("figures"));
|
|
10
9
|
const fs_extra_1 = (0, tslib_1.__importDefault)(require("fs-extra"));
|
|
@@ -21,7 +20,7 @@ const vcs_1 = require("../../vcs");
|
|
|
21
20
|
const git_1 = (0, tslib_1.__importDefault)(require("../../vcs/clients/git"));
|
|
22
21
|
class Build extends EasCommand_1.default {
|
|
23
22
|
async runAsync() {
|
|
24
|
-
const { flags: rawFlags } = this.parse(Build);
|
|
23
|
+
const { flags: rawFlags } = await this.parse(Build);
|
|
25
24
|
if (rawFlags.json) {
|
|
26
25
|
(0, json_1.enableJsonOutput)();
|
|
27
26
|
}
|
|
@@ -34,22 +33,24 @@ class Build extends EasCommand_1.default {
|
|
|
34
33
|
var _a;
|
|
35
34
|
const nonInteractive = flags['non-interactive'];
|
|
36
35
|
if (!flags.platform && nonInteractive) {
|
|
37
|
-
|
|
36
|
+
core_1.Errors.error('--platform is required when building in non-interactive mode', { exit: 1 });
|
|
38
37
|
}
|
|
39
38
|
if (flags.json && !nonInteractive) {
|
|
40
|
-
|
|
39
|
+
core_1.Errors.error('--json is allowed only when building in non-interactive mode', { exit: 1 });
|
|
41
40
|
}
|
|
42
41
|
const requestedPlatform = await (0, platform_1.selectRequestedPlatformAsync)(flags.platform);
|
|
43
42
|
if (flags.local) {
|
|
44
43
|
if (flags['auto-submit'] || flags['auto-submit-with-profile'] !== undefined) {
|
|
45
44
|
// TODO: implement this
|
|
46
|
-
|
|
45
|
+
core_1.Errors.error('Auto-submits are not yet supported when building locally', { exit: 1 });
|
|
47
46
|
}
|
|
48
47
|
if (requestedPlatform === platform_1.RequestedPlatform.All) {
|
|
49
|
-
|
|
48
|
+
core_1.Errors.error('Builds for multiple platforms are not supported with flag --local', {
|
|
49
|
+
exit: 1,
|
|
50
|
+
});
|
|
50
51
|
}
|
|
51
52
|
else if (process.platform !== 'darwin' && requestedPlatform === platform_1.RequestedPlatform.Ios) {
|
|
52
|
-
|
|
53
|
+
core_1.Errors.error('Unsupported platform, macOS is required to build apps for iOS', { exit: 1 });
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
if (flags['skip-credentials-check']) {
|
|
@@ -78,49 +79,49 @@ class Build extends EasCommand_1.default {
|
|
|
78
79
|
exports.default = Build;
|
|
79
80
|
Build.description = 'Start a build';
|
|
80
81
|
Build.flags = {
|
|
81
|
-
platform:
|
|
82
|
+
platform: core_1.Flags.enum({
|
|
82
83
|
char: 'p',
|
|
83
84
|
options: ['android', 'ios', 'all'],
|
|
84
85
|
}),
|
|
85
|
-
'skip-credentials-check':
|
|
86
|
+
'skip-credentials-check': core_1.Flags.boolean({
|
|
86
87
|
default: false,
|
|
87
88
|
hidden: true,
|
|
88
89
|
}),
|
|
89
|
-
json:
|
|
90
|
+
json: core_1.Flags.boolean({
|
|
90
91
|
description: 'Enable JSON output, non-JSON messages will be printed to stderr',
|
|
91
92
|
default: false,
|
|
92
93
|
}),
|
|
93
|
-
'skip-project-configuration':
|
|
94
|
+
'skip-project-configuration': core_1.Flags.boolean({
|
|
94
95
|
default: false,
|
|
95
96
|
description: 'Skip project configuration',
|
|
96
97
|
}),
|
|
97
|
-
profile:
|
|
98
|
+
profile: core_1.Flags.string({
|
|
98
99
|
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
99
100
|
helpValue: 'PROFILE_NAME',
|
|
100
101
|
}),
|
|
101
|
-
'non-interactive':
|
|
102
|
+
'non-interactive': core_1.Flags.boolean({
|
|
102
103
|
default: false,
|
|
103
104
|
description: 'Run command in non-interactive mode',
|
|
104
105
|
}),
|
|
105
|
-
local:
|
|
106
|
+
local: core_1.Flags.boolean({
|
|
106
107
|
default: false,
|
|
107
108
|
description: 'Run build locally [experimental]',
|
|
108
109
|
}),
|
|
109
|
-
wait:
|
|
110
|
+
wait: core_1.Flags.boolean({
|
|
110
111
|
default: true,
|
|
111
112
|
allowNo: true,
|
|
112
113
|
description: 'Wait for build(s) to complete',
|
|
113
114
|
}),
|
|
114
|
-
'clear-cache':
|
|
115
|
+
'clear-cache': core_1.Flags.boolean({
|
|
115
116
|
default: false,
|
|
116
117
|
description: 'Clear cache before the build',
|
|
117
118
|
}),
|
|
118
|
-
'auto-submit':
|
|
119
|
+
'auto-submit': core_1.Flags.boolean({
|
|
119
120
|
default: false,
|
|
120
121
|
description: 'Submit on build complete using the submit profile with the same name as the build profile',
|
|
121
122
|
exclusive: ['auto-submit-with-profile'],
|
|
122
123
|
}),
|
|
123
|
-
'auto-submit-with-profile':
|
|
124
|
+
'auto-submit-with-profile': core_1.Flags.string({
|
|
124
125
|
description: 'Submit on build complete using the submit profile with provided name',
|
|
125
126
|
helpValue: 'PROFILE_NAME',
|
|
126
127
|
exclusive: ['auto-submit'],
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { flags } from '@oclif/command';
|
|
2
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
3
2
|
import { RequestedPlatform } from '../../platform';
|
|
4
3
|
declare enum InspectStage {
|
|
@@ -9,12 +8,12 @@ declare enum InspectStage {
|
|
|
9
8
|
export default class BuildInspect extends EasCommand {
|
|
10
9
|
static description: string;
|
|
11
10
|
static flags: {
|
|
12
|
-
platform:
|
|
13
|
-
profile:
|
|
14
|
-
stage:
|
|
15
|
-
output:
|
|
16
|
-
force: import("@oclif/
|
|
17
|
-
verbose: import("@oclif/
|
|
11
|
+
platform: import("@oclif/core/lib/interfaces").OptionFlag<RequestedPlatform>;
|
|
12
|
+
profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
13
|
+
stage: import("@oclif/core/lib/interfaces").OptionFlag<InspectStage>;
|
|
14
|
+
output: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
15
|
+
force: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
18
17
|
};
|
|
19
18
|
runAsync(): Promise<void>;
|
|
20
19
|
private prepareOutputDirAsync;
|