UNPKG

@solvprotocol/upgrade-safe-transpiler

Version:

Solidity preprocessor used to generate OpenZeppelin Contracts Upgrade Safe.

12 lines (10 loc) 285 B
import path from 'path'; // does the same as path.relative but the result always begins with . export function relativePath(from: string, to: string): string { const rel = path.relative(from, to); if (rel.startsWith('.')) { return rel; } else { return './' + rel; } }