Skip to content

Commit

Permalink
chore(deps): bump inquirer from 9.3.4 to 10.0.0 (#11432)
Browse files Browse the repository at this point in the history
* chore(deps): bump inquirer from 9.3.4 to 10.0.0
* chore(deps): specify inquirer prompt type

Co-authored-by: Claas Augner <caugner@mozilla.com>
  • Loading branch information
dependabot[bot] and caugner authored Jul 9, 2024
1 parent 439736b commit 52d63db
Show file tree
Hide file tree
Showing 4 changed files with 162 additions and 91 deletions.
2 changes: 1 addition & 1 deletion build/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function buildDocumentInteractive(
throw e;
}
console.error(e);
const { action } = await prompt([
const { action } = await prompt<{ action: string }>([
{
type: "list",
message: "What to do?",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"imagemin-mozjpeg": "^10.0.0",
"imagemin-pngquant": "^10.0.0",
"imagemin-svgo": "^11.0.1",
"inquirer": "^9.3.4",
"inquirer": "^10.0.0",
"is-svg": "^5.0.1",
"js-yaml": "^4.1.0",
"loglevel": "^1.9.1",
Expand Down
6 changes: 3 additions & 3 deletions tool/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ program
}
const { run } = yes
? { run: true }
: await prompt({
: await prompt<{ run: boolean }>({
type: "confirm",
message: "Proceed?",
name: "run",
Expand Down Expand Up @@ -436,7 +436,7 @@ program
);
const { run } = yes
? { run: true }
: await prompt({
: await prompt<{ run: boolean }>({
type: "confirm",
message: "Proceed?",
name: "run",
Expand Down Expand Up @@ -791,7 +791,7 @@ program
}
const { run } = yes
? { run: true }
: await prompt({
: await prompt<{ run: boolean }>({
type: "confirm",
message: `Proceed fixing ${flaws} flaws?`,
name: "run",
Expand Down
Loading

0 comments on commit 52d63db

Please sign in to comment.