Closed thetutlage closed 5 years ago
peer-deps don't install by default. this allows you to control the version. its the right behavior. you'll need to version it alongside
I know how peer dependencies works. The main question was, why compiling code needs ts-node
? Isn’t typescript alone enough
@thetutlage ttypescript
uses ts-node
because you can specify local project transformers written in typescript
Okay makes sense. I was just trying to understand the reason behind its usage.
Up until
1.5.6
, I was able to usettypescript
without installingts-node
as a separate dependency. However, from1.5.7
onwards, thettsc
command fails whents-node
is not installed.I do see a commit that moves
ts-node
from dependencies list to peerDependencies list, but I am not sure whyts-node
is required when I just want to compile the code usingttsc