watilde / tvm

TypeScript Version Manager
http://watilde.github.io/tvm
32 stars 5 forks source link

Feature Request: Make this behave more like nvm #42

Open icfantv opened 6 years ago

icfantv commented 6 years ago

First off, I think this is a brilliant idea. I think it would be even better if it were made more like nvm. Feel free to shoot this down or what not, just my two cents.

watilde commented 6 years ago

Hey! Thank you for your input here.

What exactly did you mean making more like nvm? Does it mean something like tvm should have exactly same subcommands with nvm?

icfantv commented 6 years ago

Yea, sorry. I could have done better with more context. I mean like installing via homebrew (e.g.) and being able to just call tsc from the command line without the tvm part first. That is, nvm provides a script such that one can do:

# ensure NVM is available from the command line
export NVM_DIR="$HOME/.nvm"
source $(brew --prefix nvm)/nvm.sh

And then I can just do $ tsc foo.ts and it "gets/uses the right version of Typescript."

Hopefully that was more clear. Please let me know if you have any other questions.

watilde commented 5 years ago

I see! That's a good idea, and we also can consider using an alias as mentioned in the README.

alias tsc='tvm tsc'

Patch is welcomed, and I will think of how it can be a better design since it'd be major-update.

jpSimkins commented 3 years ago

It would also be nice to have the lts (long-term support) options like nvm too