| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 |
How to run ts scripts
Install ts-node with
npm i -g ts-node
Use the following command. The --transpileOnly option is used to avoid some typing error.
ts-node --log-error yourScript.ts
Alternatively, you can use nodemon which allows you to rerun the script on change.
npm i -g nodemon
nodemon --transpileOnly yourScript.ts