import isString = require ( 'lodash/isString' ) ; import isUrl from 'is-url' ; import * as path from 'path' ; function makeAbs ( p ) { if ( ! isString ( p ) || isUrl ( p ) || path . isAbsolute ( p ) ) return p ; return path . resolve ( process . cwd ( ) , p ) ; } export default makeAbs ;