ts-node is a CLI tool like node command, but can run TypeScript code directly.
This PR makes vim-quickrun prefer ts-node to tsc because ts-node does not need to create a temporary file (compile code on the fly). If ts-node is not installed, this PR does not break previous behavior. It falls back into tsc.
ts-node is a CLI tool like
node
command, but can run TypeScript code directly.This PR makes vim-quickrun prefer
ts-node
totsc
becausets-node
does not need to create a temporary file (compile code on the fly). Ifts-node
is not installed, this PR does not break previous behavior. It falls back intotsc
.