Skip to content

Commit

Permalink
[eas-cli] Fix flags
Browse files Browse the repository at this point in the history
  • Loading branch information
radoslawkrzemien committed Nov 29, 2023
1 parent 92013b3 commit f9d8e24
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/eas-cli/src/commands/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class Build extends EasCommand {
static override description = 'start a build';

static override flags = {
platform: Flags.enum({
platform: Flags.string({
char: 'p',
options: ['android', 'ios', 'all'],
}),
Expand Down Expand Up @@ -84,16 +84,19 @@ export default class Build extends EasCommand {
helpValue: 'PROFILE_NAME',
exclusive: ['auto-submit'],
}),
'resource-class': Flags.enum({
'resource-class': Flags.custom<ResourceClass | undefined>({
options: Object.values(ResourceClass),
// eslint-disable-next-line async-protect/async-suffix
parse: async (input: string | undefined) =>
Object.values(ResourceClass).find(resourceClass => resourceClass === input),
hidden: true,
deprecated: {
message: chalk.yellow(
'The --resource-class flag has been deprecated. Define the resource class in eas.json.\nLearn more: https://docs.expo.dev/build-reference/eas-json/'
),
},
description: 'The instance type that will be used to run this build [experimental]',
}),
})(),
message: Flags.string({
char: 'm',
description: 'A short message describing the build',
Expand Down

0 comments on commit f9d8e24

Please sign in to comment.