After installing ts-global and setting the default ts config, I encountered an issue while trying to compile my file with custom configurations. The command tsc
worked fine, but when I tried adding a file path like tsc myfile.ts
, nothing seemed to work.
For instance, modifying from the default
"target": "es5"
to "target": "esnext"
only functioned properly with the commands tsc
or tsc myfile -target esnext
.
I'm puzzled as to why it doesn't work with just tsc myfile
command. Any ideas?