From 8b4702f731dc73dfbe0e9c8076effecff2ba3ea1 Mon Sep 17 00:00:00 2001 From: Simon Robb Date: Sat, 9 Jan 2016 12:40:06 +1100 Subject: [PATCH] Provided default baseDir option in grunt task --- tasks/dtsGenerator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/dtsGenerator.js b/tasks/dtsGenerator.js index 42af10b..cec15e9 100644 --- a/tasks/dtsGenerator.js +++ b/tasks/dtsGenerator.js @@ -8,7 +8,7 @@ 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); + return path.relative(kwArgs.baseDir || '', filename); }); dtsGenerator(kwArgs).then(function () {