tsd icon indicating copy to clipboard operation
tsd copied to clipboard

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

Open shadowmint opened this issue 10 years ago • 2 comments

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.

shadowmint avatar Feb 07 '15 03:02 shadowmint

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

Diullei avatar Jun 10 '15 12:06 Diullei

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.

mikesigs avatar Sep 27 '15 06:09 mikesigs