Skip to content

环境配置

作者:Choi Yang
更新于:4 个月前
字数统计:55 字
阅读时长:1 分钟
阅读量:
sh
# 环境配置
npm i ts-node typescript ts-node-dev -g
# 添加 tsconfig.json
npx --package typescript tsc --init

执行单个文件:

sh
ts-node index.ts

监听文件变更:

sh
ts-node-dev --respawn --transpile-only index.ts

Contributors

Choi Yang