Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

run typescript compiler

npm install -g typescript
tsc --init #reate a tsconfig.json file
tsc --watch # transpile on change in current directory (watch changes)

# in your package.json "compilets-tojs": "npx tsc --project ./",
# you can rename "compilets-tojs" to any shorter name

npm run compilets-tojs
 
PREVIOUS NEXT
Tagged: #run #typescript #compiler
ADD COMMENT
Topic
Name
3+9 =