Utilizing npm for my build tasks, I have included an entry in the scripts
section of my packages.json
file labeled "tsc"
, which compiles the .ts
files within my project. However, I recently noticed that I was encountering different TypeScript error messages when running > tsc
directly versus using > npm run start
. After updating the script entry to (tsc -v; tsc)
, I observed:
> npm run build
message TS6029: Version 1.6.2
On the other hand, if I execute the same command directly, I receive:
> (tsc -v; tsc)
Version 1.8.10
I am puzzled by what might be causing this discrepancy in behavior. Any insights?