Hi all... so I am currently in the midst of upgrading an existing project to a newer version of typescript. The issue I am having is that in package.json we have a command to compile everything with tsc:"test:build": "tsc --outDir ./dist"and a command to run the project locally through nodemon and ts-node:"build:live": "nodemon --exec node --inspect -r ts-node/register ./index.ts | bunyan -l debug",The issue is that the first command that builds directly with tsc gives compilation errors where our code is not correct for the new version of typescript that I've specified in package.json. That's to be expected and its fine. But the latter command that runs with nodemon and ts-node continues to run quite happily with no errors, which leads me to believe that, behind the scenes, its using a different and older version of tsc.So, how can I determine which version of tsc is actually being used by ts-node? And more to the point, how can I get it to use the new version that I am trying to target?Thanks in advance for any help, and sorry if this is a bad question but I am relatively new to the world of node and not having any luck Googling for this.
Submitted April 17, 2020 at 05:12PM by SkullLeader
No comments:
Post a Comment