Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Block: Migrate Inquirer.js dependency to the new API #67877

Merged
merged 11 commits into from
Dec 19, 2024
Prev Previous commit
Next Next commit
Fix TypeScript error
  • Loading branch information
gziolo committed Dec 18, 2024
commit 0462ef7d24c19cafd5a05cc2923f2ff4350b9d8d
4 changes: 2 additions & 2 deletions bin/plugin/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* External dependencies
*/
// @ts-ignore
const inquirer = require( 'inquirer' );
const { prompt } = require( 'inquirer' );
const fs = require( 'fs' );
const childProcess = require( 'child_process' );
const { v4: uuid } = require( 'uuid' );
Expand Down Expand Up @@ -97,7 +97,7 @@ async function askForConfirmation(
isDefault = true,
abortMessage = 'Aborting.'
) {
const { isReady } = await inquirer.prompt( [
const { isReady } = await prompt( [
{
type: 'confirm',
name: 'isReady',
Expand Down