Skip to content

Commit

Permalink
[eas-cli] Add validation
Browse files Browse the repository at this point in the history
Added validation so the simulator flag can only be used with --platofrm=ios

See: https://linear.app/expo/issue/ENG-9957/fix-internal-distribution-pages-for-simulator-builds
  • Loading branch information
radoslawkrzemien committed Jan 23, 2024
1 parent 9b442e2 commit 7bc9744
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/eas-cli/src/commands/build/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ export default class BuildList extends EasCommand {
`Using "distribution" flag with "simulator" value is deprecated - use "simulator" flag instead`
);
}
if (flags.simulator && requestedPlatform !== RequestedPlatform.Ios) {
Log.error(
`The --simulator flag is only usable with --platform flag set to "ios", as it is used to filter specifically iOS simulator builds`
);
process.exit(1);
}
const {
privateProjectConfig: { projectId },
loggedIn: { graphqlClient },
Expand Down

0 comments on commit 7bc9744

Please sign in to comment.