denoland / deno_emit

Transpile and bundle JavaScript and TypeScript under Deno and Deno Deploy
https://jsr.io/@deno/emit
MIT License
222 stars 23 forks source link

Feature request: add a CLI API #102

Open aduh95 opened 1 year ago

aduh95 commented 1 year ago

What problem would this feature solve?

I'm looking for a replacement for deno bundle which has been deprecated. Having a CLI way to call the method would be ideal for a drop-in replacement for someone who wants to use the defaults.

What would this feature look like?

Something like:

$ deno -A run https://deno.land/x/emit/cli.ts --bundle ./entryPoint.ts > bundle.ts
jflatow commented 1 year ago

💯 This seems kind of essential before dropping support for the deno bundle command line interface. Is this planned but on hold until the API stabilizes, or something? Is there something wrong with the bundle example? Just curious as to what to expect, since I've been informally relying on bundle.