mirror of
https://github.com/sern-handler/cli
synced 2026-06-20 23:02:23 +00:00
* chore: progress * chore: blaming regex. permalink: http://whatthecommit.com/7eaa73b94ca6e8f964d99b6f2db6e9e4 * chore: permalink: * chore: lol * chore: accidental commit permalink: http://whatthecommit.com/7c6c9323d8c243d10cd93c8bbbc55d09 * fix syntx * fix list not showing up * prety * chore: refresh lockfile * chore: progress * fix list not showing up * refactor: cleanup some mess * Update preprocessor.ts --------- Co-authored-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com>
13 lines
409 B
TypeScript
13 lines
409 B
TypeScript
import prompt from 'prompts';
|
|
import { extraPrompt } from '../prompts/extra.js';
|
|
import { create } from '../utilities/create.js';
|
|
|
|
export async function extra() {
|
|
const extra = await prompt([extraPrompt]);
|
|
|
|
if (Object.keys(extra).length < 1) process.exit(1);
|
|
const lang = extra.extra.includes('typescript') ? 'TS' : 'JS';
|
|
|
|
await create(extra.extra.split('-')[0], lang, process.cwd(), true);
|
|
}
|