diff --git a/package.json b/package.json index 0cb7201..7a16520 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "dts-generator", "description": ".d.ts generator. Generates a single d.ts bundle containing external modules from TypeScript files.", - "version": "1.6.1", + "version": "1.6.2", "bugs": { "url": "https://github.com/SitePen/dts-generator/issues" }, diff --git a/tasks/dtsGenerator.js b/tasks/dtsGenerator.js index dc5f375..42af10b 100644 --- a/tasks/dtsGenerator.js +++ b/tasks/dtsGenerator.js @@ -4,14 +4,14 @@ module.exports = function (grunt) { grunt.registerMultiTask('dtsGenerator', function () { var done = this.async(); - var onProgress = grunt.verbose.writeln.bind(grunt.verbose); 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); }); - dtsGenerator(kwArgs, onProgress).then(function () { + dtsGenerator(kwArgs).then(function () { grunt.log.writeln('Generated d.ts bundle at \x1b[36m' + kwArgs.out + '\x1b[39;49m'); done(); }, done);