moznion / gulp-tsd

Gulp plugin to automate TSD and TypeScript definition related tasks
MIT License
38 stars 7 forks source link

"undefined" command is not supported #7

Open kseo opened 9 years ago

kseo commented 9 years ago

The following example does not work for me. (I adjusted the path correctly).

var tsd = require('gulp-tsd');

gulp.task('tsd', function () {
    return gulp.src('./gulp_tsd.json').pipe(tsd());
});

kseo@Kwangs-MacBook-Pro:~/hackercafe/video (master *)$ gulp [16:10:22] Using gulpfile ~/xxx/gulpfile.js [16:10:22] Starting 'tsd'... [16:10:23] 'tsd' errored after 422 ms [16:10:23] Error in plugin 'gulp-tsd' Message: "undefined" command is not supported

The second example works fine.

var tsd = require('gulp-tsd');

gulp.task('tsd', function (callback) {
    tsd({
        command: 'reinstall',
        config: './tsd.json'
    }, callback);
});
pleerock commented 9 years ago

same error for me

orangeRat commented 9 years ago

and for me

moznion commented 9 years ago

@kseo @PLEEROCK @orangeRat Sorry for my late reply.

Perhaps, is command missing in your gulp_tsd.json? Work of gulp-tsd is unsettled if command is not set. Do you need default behavior on such a situation?

pleerock commented 9 years ago

is only "reinstall" command supported? If yes then it makes this component not very usable.