typescript -g doesnst read tsconfog 1

typescript -g doesnst read tsconfog

root/
 - tsconfig.json
 - index.ts
 
 
tsc index.ts // Won't work
tsc //  will work

Here is what the above code is Doing:
1. It’s telling the compiler to look for the tsconfig.json file in the current directory.
2. It’s telling the compiler to compile all the files in the current directory.
3. It’s telling the compiler to output the compiled files in the current directory.

Similar Posts