Skip to content

Commit

Permalink
Additional fix to grunt task.
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Nov 3, 2015
1 parent 83d885c commit 105bbf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions tasks/dtsGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 105bbf1

Please sign in to comment.