fix promisechain

This commit is contained in:
Philipp Kunz 2016-05-19 18:42:23 +02:00
parent e30dc5d77c
commit 043f6e8581
2 changed files with 7 additions and 2 deletions

View File

@ -13,6 +13,7 @@ var NpmtsOptions = require("./npmts.options");
var NpmtsPublish = require("./npmts.publish");
var NpmtsTests = require("./npmts.tests");
exports.promisechain = function () {
var done = plugins.Q.defer();
NpmtsConfigFile.run()
.then(NpmtsOptions.run)
.then(NpmtsClean.run)
@ -45,5 +46,7 @@ exports.promisechain = function () {
exports.npmtsOra.endOk("Tasks finished!");
plugins.beautylog.success("Done!");
}
done.resolve();
});
return done.promise;
};

View File

@ -14,7 +14,8 @@ import NpmtsOptions = require("./npmts.options");
import NpmtsPublish = require("./npmts.publish");
import NpmtsTests = require("./npmts.tests");
export var promisechain = function(){
export let promisechain = function(){
let done = plugins.Q.defer();
NpmtsConfigFile.run()
.then(NpmtsOptions.run)
.then(NpmtsClean.run)
@ -46,6 +47,7 @@ export var promisechain = function(){
npmtsOra.endOk("Tasks finished!");
plugins.beautylog.success("Done!")
}
done.resolve();
});
return done.promise;
};