task命令增加ts-node支持 by lcylgs@20210609

This commit is contained in:
lcylgs 2021-07-12 20:10:35 +08:00
parent 11af5d0eb4
commit fc2a5a7c94

View File

@ -14,6 +14,8 @@ define_program() {
which_program="python3" which_program="python3"
elif [[ $p1 == *.sh ]]; then elif [[ $p1 == *.sh ]]; then
which_program="bash" which_program="bash"
elif [[ $p1 == *.ts ]]; then
which_program="ts-node"
else else
which_program="" which_program=""
fi fi