DefinitelyTyped / tsd

[DEPRECATED] TypeScript Definition manager for DefinitelyTyped
Apache License 2.0
1.12k stars 135 forks source link

Modify install command to perform 'reinstall' if invoked with no arguments #122

Open shadowmint opened 9 years ago

shadowmint commented 9 years ago

This should be the default; all other command line tools (bower, npm, etc) default to this behavior.

It's really annoying have to explain to people repeatedly that typescript is special and doesn't work the same way as all the other standard tools.

It should be a trivial change; instead of:

Tok:hello_world doug$ tsd install

-> an error occured!

pass at least one query pattern
VError: pass at least one query pattern

Simple detect no arguments were passed and run reinstall instead.

Diullei commented 9 years ago

I started it here https://github.com/Diullei/tsd/commit/4671696899fb089340d652c10d41189693cbed84

mikesigs commented 9 years ago

I have just run into this myself. I noticed that gulp/tsd.js is missing. Was this removed in the most recent update of the generator? A work around for the problem was for me to run tsd reinstall before running gulp.