prompts icon indicating copy to clipboard operation
prompts copied to clipboard

Build script to setup ESM/CJS module exports

Open gfortaine opened this issue 2 years ago • 3 comments

gfortaine avatar Jan 16 '23 17:01 gfortaine

How is this going? prompts isn't working with ts-node-esm, so I'd really want an ESM version of this library

longnguyen2004 avatar Feb 04 '23 05:02 longnguyen2004

Yeah, same, would like to use it with native esm ;)

marckraw avatar Feb 19 '23 10:02 marckraw

Is there any temporary solution for now to utilize this in an ESM environment until support is added? I would prefer to avoid build steps or transpilation if possible on the consuming side.

I tried to switch my script over to cjs, but then I lose top level awaits :(

ctsstc avatar Nov 30 '23 02:11 ctsstc