c4spar / deno-cliffy

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
https://cliffy.io
MIT License
968 stars 66 forks source link

can't use dnt with cliffy because of top-level await #735

Open rubenfiszel opened 2 months ago

rubenfiszel commented 2 months ago

https://github.com/c4spar/deno-cliffy/blob/33b01f838f5cf84cac86d271b0b4c00311bef0de/internal/runtime/read_sync.ts#L4

[dnt] Top level await cannot be used when distributing CommonJS/UMD (See deps/jsr.io/@cliffy/internal/1.0.0-rc.5/runtime/read_sync.ts 6:5). Please re-organize your code to not use a top level await or only distribute an ES module by setting the 'scriptModule' build option to false.
rubenfiszel commented 2 months ago

Using scriptModule: false works in the meantime