generate tsconfig.json code example
Example 1: tsc init
tsc --init
npx tsc --init
Example 2: tsconfig.json not generated
$ tsc --init
Example 3: tsconfig.json basic configuration
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"outDir": "public/js"
"rootDir": "src",
"strict": true,
"esModuleInterop": true
"forceConsistentCasingInFileNames": true
},
"include": ["src"]
}