UNPKG

zenith-gen

Version:

A CLI tool designed to streamline the creation of projects within the Zenith Inova ecosystem, providing optimized configurations and modern development tools.

19 lines (16 loc) 584 B
import { PackageManager } from '../types/packageManager'; import inquirer from 'inquirer'; export async function packageManagerPrompt(): Promise<PackageManager> { const packageManager: PackageManager = await inquirer .prompt([ { type: 'list', name: 'packageManager', message: 'Select package manager', choices: ['pnpm', 'npm'], default: 'pnpm', }, ]) .then(ans => ans.packageManager as PackageManager); return packageManager; }