UNPKG

create-typescript-project-scaffolding

Version:
12 lines (11 loc) 403 B
#!/usr/bin/env node import { askQuestions } from './lib/promptArray.js'; import answerHandler from './lib/answerHandler.js'; console.log('\nStarting Scaffolder...\n(Press CTRL+C to cancel anytime...)\n'); askQuestions() .then((x) => answerHandler.handler(x)) .then((x) => console.log(x)) .catch((error) => { console.error('There was an unexpected error:'); console.error(error); });