promisechain now returns promise
This commit is contained in:
parent
659907d280
commit
e297be6fc2
@ -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);
|
||||
|
@ -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;
|
||||
};
|
Loading…
Reference in New Issue
Block a user