Skip to content

Commit c2a9d6d

Browse files
sshaderConvex, Inc.
authored and
Convex, Inc.
committed
Change every inquirer list prompt to use search-list to fix CTRL+C (#27745)
...in the `convex` monorepo. GitOrigin-RevId: 9f9ce9e88cefb026b3164c18668bd1e9de7e7180
1 parent d1cf076 commit c2a9d6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

npm-packages/convex/src/cli/configure.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ async function askToReconfigureNew(
356356
export async function promptToInitWithProjects(): Promise<"new" | "existing"> {
357357
const { choice } = await inquirer.prompt([
358358
{
359-
type: "list",
359+
type: "search-list",
360360
name: "choice",
361361
message: `What would you like to configure?`,
362362
default: "new",
@@ -372,7 +372,7 @@ export async function promptToInitWithProjects(): Promise<"new" | "existing"> {
372372
export async function promptToReconfigure(): Promise<"new" | "existing"> {
373373
const { choice } = await inquirer.prompt([
374374
{
375-
type: "list",
375+
type: "search-list",
376376
name: "choice",
377377
message: `Configure a different project?`,
378378
default: "new",

npm-packages/convex/src/cli/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export async function validateOrSelectTeam(
287287
{
288288
name: "teamSlug",
289289
message: promptMessage,
290-
type: "list",
290+
type: "search-list",
291291
choices: teams.map((team: Team) => ({
292292
name: `${team.name} (${team.slug})`,
293293
value: team.slug,

0 commit comments

Comments
 (0)