deno install 和 deno compile 有什么区别?
Whats the difference beetween deno install and deno compile?
如果我这样做 deno --help
它显示:
- compile = 将脚本编译成独立的可执行文件
- install = 安装脚本作为可执行文件
这两个命令有什么区别?
Command
Output
Self contained 1
Deno runtime integrated 2
compile
binary
y
y
install
script (shell / .bat
)
n
n
bundle
.js
y
n
1 自包含 := 包括本地和远程依赖项/脚本,单个文件
2 集成 := 不需要 单独 运行时
如果我这样做 deno --help
它显示:
- compile = 将脚本编译成独立的可执行文件
- install = 安装脚本作为可执行文件
这两个命令有什么区别?
Command | Output | Self contained 1 | Deno runtime integrated 2 |
---|---|---|---|
compile |
binary | y | y |
install |
script (shell / .bat ) |
n | n |
bundle |
.js |
y | n |
2 集成 := 不需要 单独 运行时