cevek / ttypescript

Over TypeScript tool to use custom transformers in the tsconfig.json
1.53k stars 56 forks source link

Is `ts-node` a required dependency to use this module? #63

Closed thetutlage closed 5 years ago

thetutlage commented 5 years ago

Up until 1.5.6, I was able to use ttypescript without installing ts-node as a separate dependency. However, from 1.5.7 onwards, the ttsc command fails when ts-node is not installed.

I do see a commit that moves ts-node from dependencies list to peerDependencies list, but I am not sure why ts-node is required when I just want to compile the code using ttsc

tbranyen commented 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

thetutlage commented 5 years ago

I know how peer dependencies works. The main question was, why compiling code needs ts-node? Isn’t typescript alone enough

cevek commented 5 years ago

@thetutlage ttypescript uses ts-node because you can specify local project transformers written in typescript

thetutlage commented 5 years ago

Okay makes sense. I was just trying to understand the reason behind its usage.