UNPKG

pertain

Version:

Automated pub/sub across project dependencies. Run code from any installed package based on declarative rules in package.json

8 lines (7 loc) 327 B
export type Resolver = (modulePath: string) => string | undefined; /** * Returns a function which resolves filesystem base directories, given module * names. The returned function will resolve all modules starting from the `cwd` * passed to the resolver factory. */ export default function resolver(cwd: string): Resolver;