Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ora from 'ora';
import chalk from 'chalk';
import inquirer from 'inquirer';
import * as inquirer from '@inquirer/prompts';

import { warning, error, info, success } from './figures.js';

Expand Down Expand Up @@ -81,12 +81,10 @@ export default class CLI {
return defaultAnswer;
}

const { answer } = await inquirer.prompt([{
type: questionType,
name: 'answer',
const answer = await inquirer[questionType]({
message: question,
default: defaultAnswer
}]);
});

if (isSpinning) {
this.spinner.start(spinningMessage);
Expand Down
8 changes: 3 additions & 5 deletions lib/update-v8/backport.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
promises as fs
} from 'node:fs';

import inquirer from 'inquirer';
import { confirm } from '@inquirer/prompts';
import { ListrEnquirerPromptAdapter } from '@listr2/prompt-adapter-enquirer';

import { shortSha } from '../utils.js';
Expand All @@ -12,14 +12,12 @@ import { getCurrentV8Version } from './common.js';

export async function checkOptions(options) {
if (options.sha.length > 1 && options.squash) {
const { wantSquash } = await inquirer.prompt([{
type: 'confirm',
name: 'wantSquash',
const wantSquash = await confirm({
message: 'Squashing commits should be avoided if possible, because it ' +
'can make git bisection difficult. Only squash commits if they would ' +
'break the build when applied individually. Are you sure?',
default: false
}]);
});

if (!wantSquash) {
return true;
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,36 +34,36 @@
],
"license": "MIT",
"dependencies": {
"@listr2/prompt-adapter-enquirer": "^2.0.10",
"@inquirer/prompts": "^6.0.1",
"@listr2/prompt-adapter-enquirer": "^2.0.11",
"@node-core/caritat": "^1.6.0",
"@pkgjs/nv": "^0.2.2",
"branch-diff": "^3.0.4",
"branch-diff": "^3.1.1",
"chalk": "^5.3.0",
"changelog-maker": "^4.1.1",
"cheerio": "^1.0.0-rc.12",
"cheerio": "^1.0.0",
"clipboardy": "^4.0.0",
"core-validate-commit": "^4.0.0",
"core-validate-commit": "^4.1.0",
"figures": "^6.1.0",
"ghauth": "^6.0.5",
"inquirer": "^9.3.2",
"ghauth": "^6.0.7",
"js-yaml": "^4.1.0",
"listr2": "^8.2.3",
"listr2": "^8.2.4",
"lodash": "^4.17.21",
"log-symbols": "^6.0.0",
"ora": "^8.0.1",
"replace-in-file": "^8.0.2",
"undici": "^6.19.2",
"log-symbols": "^7.0.0",
"ora": "^8.1.0",
"replace-in-file": "^8.2.0",
"undici": "^6.19.8",
"which": "^4.0.0",
"yargs": "^17.7.2"
},
"devDependencies": {
"@reporters/github": "^1.7.0",
"@reporters/github": "^1.7.1",
"c8": "^10.1.2",
"eslint": "^8.57.0",
"eslint": "^8.57.1",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.4.0",
"sinon": "^18.0.0"
"eslint-plugin-promise": "^6.6.0",
"sinon": "^19.0.2"
}
}
Loading