Answers for "how to run ts file"

0

how to run typescript file

npx ts-node src/foo.ts
Posted by: Guest on June-22-2020
0

how to run ts file

npm install -g ts-node typescript '@types/node'
Posted by: Guest on October-29-2021
0

how to compile ts in cmd

"scripts": {
    "clean": "rimraf dist",
    "start": "npm-run-all clean --parallel watch:build watch:server --print-label",
    "watch:build": "tsc --watch",
    "watch:server": "nodemon './dist/index.js' --watch './dist'"
}
Posted by: Guest on May-20-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language