consola icon indicating copy to clipboard operation
consola copied to clipboard

(Multi)Select behaves as input in the Deno

Open vikiival opened this issue 8 months ago • 1 comments

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

vikiival avatar Oct 19 '23 12:10 vikiival