Compile using tsconfig.json
Video Lecture
Description
We can simplify the transpiling process by using a tsconfig.json
./src/server/tsconfig.json
1 2 3 4 5 6 7 8 9 |
|
To compile
tsc.cmd -p ./src/server
To serve the JavaScript output file
node dist/server/server.js
Useful Links
TSC Compiler Options
https://www.typescriptlang.org/docs/handbook/compiler-options.html