Skip to main content

TSC commands

run [TSC](tsc_ts-def) in [Watch Mode](watch-mode) for app.ts

tsc app.ts -w

tsc --init

init TSC in project w/o TS

tsc -w (run in project root dir)

enter Watch Mode in root project dir to watch changes for all .ts files

Initialize project folder to run with TS

tsc --init

tsconfig.json

TS Manifest to config TSC behavior

Open tsc help menu

tsc -h

tsc -help

Check tsc version

tsc -v

tsc -v

install tsc

npm i -g typescript

run index.tsx with TS compiler and get output js file

tsc index.tsx

run TSC in root folder which has typescript config file

tsc

npx tsc

Initialize project folder to run with [TS](ts)

tsc --init

References