Repository URL to install this package:
|
Version:
1.2.7 ▾
|
import { resolve } from 'path'
import { config } from '@skava/di'
const appRootDir = config.get('appRootDir')
export const resolveToRoot = relative => {
if (typeof relative !== 'string') {
console.log(new Error('DID NOT GIVE RELATIVE TO RESOLVETOROOT'))
return ''
}
return resolve(appRootDir, relative)
}