修改 typescript execute

This commit is contained in:
whyour
2023-03-12 20:53:15 +08:00
parent f76828d4ec
commit 73c53dbc8d
8 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ get_token() {
if [[ -f $file_auth_token ]]; then
token=$(cat $file_auth_token | jq -r .value)
else
local token_command="ts-node-transpile-only ${dir_root}/back/token.ts"
local token_command="tsx ${dir_root}/back/token.ts"
local token_file="${dir_root}static/build/token.js"
if [[ -f $token_file ]]; then
token_command="node ${token_file}"