cmd-ts icon indicating copy to clipboard operation
cmd-ts copied to clipboard

Deno Support

Open harrysolovay opened this issue 2 years ago • 4 comments

Awesome library. I'm currently using cmd-ts within a Deno application. Everything behaves beautifully with one exception: at the end of every run is an error related to (what appears to be) a NodeJS cleanup hook (?).

error: Uncaught TypeError: __Process$.exit is not a function
    at N.run (https://cdn.esm.sh/v66/[email protected]/es2021/cmd-ts.js:2:4443)
    at Module.ve (https://cdn.esm.sh/v66/[email protected]/es2021/cmd-ts.js:9:66)
    at async file:///Users/harrysolovay/Desktop/capi/cli/bin.ts:8:1

Using dryRun suppresses this error... but then there's no console output. Any tips on smoothing this out?

harrysolovay avatar Mar 01 '22 17:03 harrysolovay

Just wanted to follow up. I'm a huge fan of this CLI DX and would very much like to continue using it. Thoughts on this issue would be greatly appreciated!

harrysolovay avatar Mar 18 '22 04:03 harrysolovay

Hey I really want to do that. Having dryRun was to support Deno. Hope I’ll get to this soon

Schniz avatar May 18 '22 06:05 Schniz

@Schniz thank you for your consideration. AWESOME TOOL!

harrysolovay avatar May 18 '22 12:05 harrysolovay

Hi @Schniz, any word on whether this feature might make its way into the lib? (no pressure).

harrysolovay avatar Oct 24 '22 16:10 harrysolovay