This must be the slickest one-liner to create an executable:
deno compile -o hello -A jsr:@babashka/nbb -e '(println "hello from cli")'
you can even cross-compile
deno compile --target x86_64-pc-windows-msvc -o hello.exe -A jsr:@babashka/nbb -e '(println "hello from cli")'
I can't figure out how to access Deno's import.meta property, otherwise I could use load-file and --include to bundle files