UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

11 lines 546 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRelativePath = void 0; const path_1 = __importDefault(require("path")); const getDirOfPath_1 = require("./getDirOfPath"); const getRelativePath = ({ from, to }) => path_1.default.relative((0, getDirOfPath_1.getDirOfPath)(from), to); exports.getRelativePath = getRelativePath; //# sourceMappingURL=getRelativePath.js.map