Skip to content

Commit

Permalink
Updated grunt task (#83)
Browse files Browse the repository at this point in the history
Reflected change from baseDir => project currently missing in grunt task
  • Loading branch information
dploeger authored and dylans committed Jan 12, 2017
1 parent b739902 commit 7f3743d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/dtsGenerator.js
Expand Up @@ -8,7 +8,11 @@ module.exports = function (grunt) {
var kwArgs = this.options();
kwArgs.sendMessage = grunt.verbose.writeln.bind(grunt.verbose);
kwArgs.files = this.filesSrc.map(function (filename) {
return path.relative(kwArgs.baseDir, filename);
if (kwArgs.hasOwnProperty('baseDir')) {
return path.relative(kwArgs.baseDir, filename);
} else {
return path.relative(kwArgs.project, filename);
}
});

dtsGenerator(kwArgs).then(function () {
Expand Down

0 comments on commit 7f3743d

Please sign in to comment.