Skip to content

Commit 432a6f1

Browse files
committed
fix(prompts): fix prompts
1 parent 561f4bc commit 432a6f1

2 files changed

Lines changed: 6 additions & 19 deletions

File tree

pnpm-lock.yaml

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/module.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { addComponentsDir, addImportsDir, addPlugin, addServerHandler, addServer
33
import { createConsola } from 'consola'
44
import { join } from 'pathe'
55
import chalk from 'chalk'
6-
import { prompt } from 'prompts'
6+
import prompts from 'prompts'
77
import * as execa from 'execa'
88

99
const logger = createConsola({
@@ -179,7 +179,7 @@ export default defineNuxtModule<ModuleOptions>({
179179
error(`Could not find ${edgeColor('EdgeDB')} CLI.`, true)
180180
if (activePrompts.installCliPrompt)
181181
return
182-
activePrompts.installCliPrompt = prompt(
182+
activePrompts.installCliPrompt = prompts(
183183
{
184184
type: 'confirm',
185185
name: 'value',
@@ -219,7 +219,7 @@ export default defineNuxtModule<ModuleOptions>({
219219
logger.log(` ${chalk.red('➜')} Could not find ${edgeColor('EdgeDB')} configuration file.`, true)
220220
if (activePrompts.initPrompt)
221221
return
222-
activePrompts.initPrompt = prompt(
222+
activePrompts.initPrompt = prompts(
223223
{
224224
type: 'confirm',
225225
name: 'value',
@@ -304,7 +304,7 @@ export default defineNuxtModule<ModuleOptions>({
304304
if (activePrompts.queriesPrompt)
305305
return
306306

307-
activePrompts.queriesPrompt = prompt(
307+
activePrompts.queriesPrompt = prompts(
308308
{
309309
type: 'confirm',
310310
name: 'value',
@@ -343,7 +343,7 @@ export default defineNuxtModule<ModuleOptions>({
343343
if (options.watchPrompt) {
344344
if (activePrompts.migrationPrompt)
345345
return
346-
activePrompts.migrationPrompt = prompt(
346+
activePrompts.migrationPrompt = prompts(
347347
{
348348
type: 'confirm',
349349
name: 'value',
@@ -389,7 +389,7 @@ export default defineNuxtModule<ModuleOptions>({
389389
if (options.watchPrompt) {
390390
if (activePrompts.schemaPrompt)
391391
return
392-
activePrompts.schemaPrompt = prompt(
392+
activePrompts.schemaPrompt = prompts(
393393
{
394394
type: 'confirm',
395395
name: 'value',

0 commit comments

Comments
 (0)