Skip to content

(Multi)Select behaves as input in the Deno #250

Closed
@vikiival

Description

@vikiival

Environment

deno 1.37.2 (release, aarch64-apple-darwin)
v8 11.8.172.13
typescript 5.2.2

import { consola } from 'https://esm.sh/[email protected]'

Reproduction

https://replit.com/@vikiival/consola-promt

MVP:

import { consola } from 'https://esm.sh/[email protected]'

const projectType = await consola.prompt("Pick a project type.", {
  type: "select",
  options: [
    "TypeScript",
    "TypeScript",
    { label: "CoffeeScript", value: "CoffeeScript", hint: "oh no" },
  ],
});

consola.info("You picked", projectType);
deno run -A main.ts

Describe the bug

I was trying to run a simple example of consola.prompt in Deno with the option of select and it returns the default prompt type.

Additional context

No response

Logs

Pick a project type. dasda
info You picked dasda

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions