Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix #2 missing call to visitors in case no package is defined

  • Loading branch information...
commit 683d53c5f1b3b221e5ac7b786585a1001875ff1f 1 parent ac497be
@divdavem divdavem authored jakub-g committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/packager/packaging.js
View
3  lib/packager/packaging.js
@@ -249,6 +249,9 @@ Packaging.prototype.renameOutputFile = function (oldLogicalPath, newLogicalPath)
Packaging.prototype.build = function () {
this.callVisitors('onBeforeBuild', []);
var outputFilesQueue = this.outputFilesQueue;
+ if (outputFilesQueue.length === 0) {
+ this.callVisitors('onReachingBuildEnd', []);
+ }
while (outputFilesQueue.length > 0) {
var outFile = outputFilesQueue.shift();
grunt.verbose.writeln("Creating package " + outFile.logicalPath + "...");
Please sign in to comment.
Something went wrong with that request. Please try again.