3 ms·
As long as Node understands to use the project-specific version of TypeScript (i.e., the one in node_modules or the PNP equivalent), that should be fine. But i
by SomeCallMeTim 2y ago
As long as Node understands to use the project-specific version of TypeScript (i.e., the one in node_modules or the PNP equivalent), that should be fine.
But it would be a step backward to need to globally upgrade TypeScript (as you do with npm), since some older projects will not be compatible with newer versions of TypeScript.
Ask me how I know. ;)
- silverwind 2y ago> As long as Node understands to use the project-specific version of TypeScript It won't, but in such a scenario, typescript would only be a type checker, wich is a entirely different endeavor than running typescript.
- madeofpalk 2y agoI think Node’s strategy here is to not let perfect be the enemy of useful for some people.
- nilsbunger 2y agoAt first I thought that's not a big deal, I could manage that with `nvm`. But I think you're right, you really want it to pick up the project-specific typescript so that you're using ONE version of typescript for type checking, execution, and more.