chore: using enquirer to replace inquirer (#11426)
This commit is contained in:
@@ -2,7 +2,7 @@ import fs from 'fs-extra';
|
||||
import glob from 'fast-glob';
|
||||
import color from 'picocolors';
|
||||
import consola from 'consola';
|
||||
import { prompt } from 'inquirer';
|
||||
import { prompt } from 'enquirer';
|
||||
import { sep, join } from 'path';
|
||||
import { CWD, GENERATOR_DIR } from './constant';
|
||||
|
||||
@@ -10,7 +10,7 @@ const PROMPTS = [
|
||||
{
|
||||
name: 'vueVersion',
|
||||
message: 'Select Vue version',
|
||||
type: 'list',
|
||||
type: 'select',
|
||||
choices: [
|
||||
{
|
||||
name: 'Vue 2',
|
||||
@@ -25,7 +25,7 @@ const PROMPTS = [
|
||||
{
|
||||
name: 'preprocessor',
|
||||
message: 'Select css preprocessor',
|
||||
type: 'list',
|
||||
type: 'select',
|
||||
choices: ['Less', 'Sass'],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user