Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
fix(create-expo-app): throw when --template and --example are both used
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Feb 7, 2023
1 parent 834a036 commit 8f2824d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/create-expo-app/src/createAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ async function setupDependenciesAsync(projectRoot: string, props: Pick<Options,
}
export async function createAsync(inputPath: string, options: Options): Promise<void> {
if (options.example && options.template) {
throw new Error('Cannot use both --example and --template');
}
if (options.example) {
return await createExampleAsync(inputPath, options);
}
Expand Down

0 comments on commit 8f2824d

Please sign in to comment.