4 ms·
Just throwing it out there for visibility, ncc will compile a TS entrypoint down to a single file as well, without having to use Deno https://www.npmjs.com/pack
by corytheboyd 6y ago
Just throwing it out there for visibility, ncc will compile a TS entrypoint down to a single file as well, without having to use Deno https://www.npmjs.com/package/@vercel/ncc https://www.npmjs.com/package/@vercel/ncc
Edit: I completely missed that this Deno release packaged the runtime as well, disregard this as an alternative! Guess I’ll eat the downvotes I deserve :P
- jonny_eh 6y ago> without having to use Deno But you need to use ncc? What's the relevant difference?
- tardismechanic 6y agoYou need `ncc run` to run the generated file. https://github.com/vercel/ncc#commands https://github.com/vercel/ncc#commands
- corytheboyd 6y agoI was wrong.
- mdtusz 6y agoThis still requires a node runtime. As far as I understand, the deno usage creates a single executable - batteries included.
- corytheboyd 6y agoYep, that’s the detail I missed. Thanks for raising it.
- kungfufrog 6y agoNot sure ncc is an equivalent. I think nexe or pkg are comparable, they bundle a runtime into the exe whereas ncc just reduces the code down to a single distributable code file in that you still need node installed to run it on the target host.
- corytheboyd 6y agoYou are completely correct