"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
const mem = require("mem");
const readPkgLib = require("read-pkg");
function readPkg(pkgPath) {
    return readPkgLib(pkgPath, { normalize: false });
}
const cachedReadPkg = mem(readPkg);
/**
 * Works identically to require('/path/to/file.json'), but safer.
 */
function default_1(pkgJsonPath) {
    pkgJsonPath = path.resolve(pkgJsonPath);
    return cachedReadPkg(pkgJsonPath);
}
exports.default = default_1;
exports.ignoreCache = readPkg;
//# sourceMappingURL=readPkg.js.map