I use npm as my build tool and one of the entries in the scripts
dictionary of my packages.json
file is "tsc"
, which causes the .ts
files in my project to be compiled. However I noticed that I was getting different TypeScript error messages when I call > tsc
directly v.s. calling > npm run start
. I updated the script entry to (tsc -v; tsc)
, and I get:
> npm run build
message TS6029: Version 1.6.2
whereas as If I call the same command directly, I get:
> (tsc -v; tsc)
Version 1.8.10
What could cause this behavior?