UNPKG

fuse-box-typechecker

Version:

Fuse-Box type checker plugin for fusebox 4.0.0 ++

8 lines (7 loc) 298 B
import * as path from 'path'; import { ITypeCheckerOptions } from './interfaces'; export function getPath(usePath: string, options: ITypeCheckerOptions): string { return options.basePath ? path.resolve(options.basePath, usePath) : path.resolve(process.cwd(), usePath); }