promisechain now returns promise

This commit is contained in:
Philipp Kunz 2016-05-19 18:36:53 +02:00
parent 659907d280
commit e297be6fc2
2 changed files with 4 additions and 6 deletions

View File

@ -1,11 +1,11 @@
/// <reference path="./typings/main.d.ts" />
console.log("**** starting NPMTS ****");
import plugins = require("./npmts.plugins");
import promisechain = require("./npmts.promisechain");
import * as plugins from "./npmts.plugins"
import {promisechain} from "./npmts.promisechain";
plugins.beautylog.figletSync("NPMTS");
try {
promisechain.run();
promisechain();
}
catch(err){
console.log(err);

View File

@ -14,8 +14,7 @@ import NpmtsOptions = require("./npmts.options");
import NpmtsPublish = require("./npmts.publish");
import NpmtsTests = require("./npmts.tests");
export var run = function(){
var promisechain;
export var promisechain = function(){
NpmtsConfigFile.run()
.then(NpmtsOptions.run)
.then(NpmtsClean.run)
@ -49,5 +48,4 @@ export var run = function(){
}
});
return promisechain;
};