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