打字稿工作流程的新手。使用node + JS时,我通常使用以下形式的dev
脚本:nodemon index.js
。使用打字稿我看到我有2个选项:
nodemon --exec "ts-node index.ts"
concurrently "tsc -w" "nodemon -w dist dist/index.js"
打字稿社区中哪一个更经常使用?有什么影响?
如果你熟悉nodemon,你可以尝试tsmon https://www.npmjs.com/package/tsmon
tsmon index.ts