UNPKG

@selemondev/create-react-next

Version:

The Next Generation React Scaffolding Tool ✨

13 lines (11 loc) 342 B
import options from '../../utils/react/options' import prompts from 'prompts' export default async function createQuestion(question: any) { const result = await prompts(question, { onCancel: () => { throw new Error('❌ ' + ' Operation cancelled') } }) Object.assign(options, result) return Promise.resolve(options) };