Skip to content

Commit

Permalink
fix(cli): fix inquirer import error
Browse files Browse the repository at this point in the history
  • Loading branch information
kagawagao committed Aug 7, 2024
1 parent 3f1b68e commit 57e915e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/src/init.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import inquirer from '@inquirer/prompts';
import { confirm } from '@inquirer/prompts';
import fs from 'fs/promises';
import path from 'node:path';
import { configExplore, logger } from './utils';
Expand All @@ -18,7 +18,7 @@ const templates = {

async function generateConfigFile() {
try {
const useTypeScript = await inquirer.confirm({
const useTypeScript = await confirm({
message: 'Would you like to use TypeScript?',
default: true,
});
Expand All @@ -37,7 +37,7 @@ const initConfig = async () => {
// check if the file already exists
const searchResult = await configExplore.search(process.cwd());
if (searchResult?.filepath) {
const overwrite = await inquirer.confirm({
const overwrite = await confirm({
message: 'Config file already exists. Do you want to overwrite it?',
default: false,
});
Expand Down

0 comments on commit 57e915e

Please sign in to comment.