tscoverage/ts/npmts.compile.helpers.ts

15 lines
520 B
TypeScript
Raw Normal View History

import plugins = require("./npmts.plugins");
import paths = require("./npmts.paths");
2016-06-07 06:49:22 +00:00
let outputPathIsDir = function (tsArrayArg,keyArg) {
return plugins.smartpath.check.isDir(plugins.path.join(paths.cwd, tsArrayArg[keyArg]));
};
2016-06-07 06:49:22 +00:00
export let checkOutputPath = function(tsArrayArg,keyArg){
if(!outputPathIsDir(tsArrayArg,keyArg)) {
plugins.beautylog.warn("Skipping " + keyArg + " because " + tsArrayArg[keyArg] + " it is no directory!")
return false
} else {
return true;
};
}