Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Uploading now starts when zip is guaranteed to be finished.
  • Loading branch information
InconceivableDuck committed Aug 22, 2013
1 parent d720265 commit 1f85705
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions lib/commands/project.js
Expand Up @@ -549,21 +549,20 @@ project._packageProject = function(dir, includeModules, cb) {
if(err) {
return cb(err);
}
});
});
});

var bytes = written + '';
modulus.io.print(makeBytesReadable(bytes).data + ' written');
out.on('close', function() {
var stats = fs.statSync(fname);
modulus.io.print(makeBytesReadable(stats.size.toString()).data + ' written');

// Remove the base ignore file.
fs.unlinkSync(path.join(dir, '.modulus-base-ignore'));
// Remove the base ignore file.
fs.unlinkSync(path.join(dir, '.modulus-base-ignore'));

if(!error) {
setTimeout(function() {
return cb(null, fname);
}, 3000);

}
});
});
if(!error) {
return cb(null, fname);
}
});
};

Expand Down

0 comments on commit 1f85705

Please sign in to comment.