UNPKG

@solvprotocol/upgrade-safe-transpiler

Version:

Solidity preprocessor used to generate OpenZeppelin Contracts Upgrade Safe.

19 lines 632 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.relativePath = void 0; const path_1 = __importDefault(require("path")); // does the same as path.relative but the result always begins with . function relativePath(from, to) { const rel = path_1.default.relative(from, to); if (rel.startsWith('.')) { return rel; } else { return './' + rel; } } exports.relativePath = relativePath; //# sourceMappingURL=relative-path.js.map