tsx 解析 ts
The easiest way to run TypeScript in Node.js
tsx watch ./src/index.ts
debug Node ts 项目
和直接运行命令行一样
{
"version": "0.2.0",
"configurations": [
{
"command": "npm start",
"name": "Run npm start",
"request": "launch",
"type": "node-terminal"
}
]
}