tscoverage/ts/npmts.options.ts

23 lines
642 B
TypeScript

/// <reference path="./index.ts" />
module NpmtsOptions {
export var run = function(configArg){
var done = plugins.q.defer();
var config = configArg;
if (typeof config.coveralls === "undefined"){
config.coveralls = true;
}
if (config.mode == "default"){
config.typings = [
"./ts/"
];
config.ts = {
["./ts/index.ts"]: "./index.js"
};
config.test = ["./index.js"];
done.resolve(config);
} else {
done.resolve(config);
}
return done.promise;
}
}