UNPKG

@pnpm/lockfile-file

Version:
13 lines 631 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getLockfileImporterId = void 0; const path_1 = __importDefault(require("path")); const normalize_path_1 = __importDefault(require("normalize-path")); function getLockfileImporterId(lockfileDir, prefix) { return ((0, normalize_path_1.default)(path_1.default.relative(lockfileDir, prefix)) || '.'); } exports.getLockfileImporterId = getLockfileImporterId; //# sourceMappingURL=getLockfileImporterId.js.map