UNPKG

@gqlts/cli

Version:

Generate a client sdk from your GraphQl API

7 lines (5 loc) 210 B
import path from 'path'; export function relativeImportPath(from: string, to: string) { const fromResolved = path.relative(from, to); return fromResolved[0] === '.' ? fromResolved : `./${fromResolved}`; }