即时编译、运行 typescript 代码
bash
npm i ts-node -g
npm i nodemon -g
index.ts
const foo: string = 'Hello'
console.log(foo)
bash
nodemon index.ts
bash
npm i ts-node -g
npm i nodemon -g
index.ts
const foo: string = 'Hello'
console.log(foo)
bash
nodemon index.ts