VSO VSO - 1 year ago 193
TypeScript Question

Typescript vs Tsc vs Ntypescript

This all started with

tsc --init
not working...

What's the difference between:

npm install -g typescript
npm install -g tsc
npm install -g ntsc

I thought "tsc" was just a shortcut for typescript, but listing them out seems to give different versions

PS C:\angular2-app> npm list -g tsc


└── tsc@1.20150623.0

PS C:\angular2-app> npm list -g typescript


└── typescript@1.8.10

So, what's the difference between the two. Is typescript the library and tsc some sort of a command line helper?

P.S. I don't really care about ntsc, it's just part of the question if you know offhand or for some reason think it's a must. Ignore otherwise.

EDIT: Given the answer below, how does powershell know which tsk I am trying to use? How do I specify?

Answer Source

tsc is some package with the same name as the typescript compiler on the command line. typescript is the real TypeScript package.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download