2016-04-30 03:49:53 +00:00
|
|
|
import plugins = require("./npmts.plugins");
|
|
|
|
import paths = require("./npmts.paths");
|
|
|
|
|
|
|
|
let outputPathIsDir = function (configArg,keyArg) {
|
2016-04-30 09:55:42 +00:00
|
|
|
return plugins.smartpath.check.isDir(plugins.path.join(paths.cwd, configArg.ts[keyArg]));
|
2016-04-30 03:49:53 +00:00
|
|
|
};
|
|
|
|
|
2016-04-30 09:55:42 +00:00
|
|
|
export let checkOutputPath = function(configArg,keyArg){
|
|
|
|
if(!outputPathIsDir(configArg,keyArg)) {
|
|
|
|
plugins.beautylog.warn("Skipping " + keyArg + " because " + configArg.ts[keyArg] + " it is no directory!")
|
|
|
|
return false
|
2016-04-30 03:49:53 +00:00
|
|
|
} else {
|
2016-04-30 09:55:42 +00:00
|
|
|
return true;
|
|
|
|
};
|
|
|
|
}
|