How do I add CLI capabilities for my existing package?
For example when running deno run jsr:@foo/bar I would like to bring up an interactive installation for the package itself, possibly adding other subcommands for convenience.
Is there any special exports such as cli.ts, or is there a way to detect a deno run shell environment from the default export (mod.ts)?
Summaries
- ✅ Use
import.meta.mainfor deno - ❓ Interop for
bininpackage.json