To generate a special file called tsconfig.json with compilation rules run: tsc --init.
Next tell the compiler where our source code is and where the output should go (in 'tsconfig.json'): {
"compilerOptions": {
"rootDir": "src",
"outDir": "build"
},
}.