import JsonFile from '@expo/json-file'; import fs from 'fs-extra'; import path from 'path'; import { TEMPLATES_DIR } from './Constants'; export type Template = { name: string; version: string; path: string; }; export async function getAvailableProjectTemplatesAsync(): Promise { const templates = await fs.readdir(TEMPLATES_DIR); return Promise.all