If I do deno --help
it shows:
- compile = Compile the script into a self-contained executable
- install = Install script as an executable
What's the difference between these two commands?
If I do deno --help
it shows:
What's the difference between these two commands?
Command | Output | Self contained 1 | Deno runtime integrated 2 |
---|---|---|---|
compile |
binary | y | y |
install |
script (shell / .bat ) |
n | n |
bundle |
.js |
y | n |
2 integrated := no separate runtime is needed
compile
d sources are considerably larger than the pure script file with bundle
(devs intend to work on reducing the binary size in later revisions). So if the script size doesn't matter / the client does not have a deno runtime / you want to ensure a certain version / it should be executed as simple as possible / code "transparency" is not important for the client, take compile
, otherwise bundle
. –
Electrotype © 2022 - 2024 — McMap. All rights reserved.