Skip to content

Commit

Permalink
[create-expo] Default to expo-template-default
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne committed May 7, 2024
1 parent 13ec73f commit 893fd06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/create-expo/src/Template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export async function extractAndPrepareTemplateAppAsync(

debug(`Extracting template app (pkg: ${npmPackage}, projectName: ${projectName})`);

const { type, uri } = resolvePackageModuleId(npmPackage || 'expo-template-blank');
const { type, uri } = resolvePackageModuleId(npmPackage || 'expo-template-default');

if (type === 'repository') {
await downloadAndExtractGitHubRepositoryAsync(uri, {
Expand Down
8 changes: 1 addition & 7 deletions packages/create-expo/src/legacyTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,11 @@ export async function promptTemplateAsync() {
throw new Error('Cannot prompt for template in CI');
}

// Temporarily filter out the "expo-template-default" from the list of templates
// that we display in the prompt. Wwe can remove this filter once we release SDK 51.
const publicTemplates = LEGACY_TEMPLATES.filter(
(template) => template.value !== 'expo-template-default'
);

const { answer } = await prompts({
type: 'select',
name: 'answer',
message: 'Choose a template:',
choices: publicTemplates,
choices: LEGACY_TEMPLATES,
});

if (!answer) {
Expand Down

0 comments on commit 893fd06

Please sign in to comment.