@schemifyjs/core
Version:
Core module of the SchemifyJS CLI. Provides reusable functions such as scaffolding, template handling, and general utilities.
12 lines (11 loc) • 400 B
JavaScript
import { PackageManagerType } from '@schemifyjs/types';
import { validatePackageManager } from './package-manager.validator.js';
export function packageManagerQuestion() {
return {
type: 'select',
name: 'packageManager',
message: 'Which package manager do you prefer?',
choices: Object.values(PackageManagerType),
validate: validatePackageManager
};
}