UNPKG

upgrade-dependents

Version:
11 lines (10 loc) 353 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); const readPkg = require("read-pkg"); async function getPackageInfo(packageDir) { const location = path.resolve(packageDir); const meta = await readPkg(packageDir); return { location, meta }; } exports.getPackageInfo = getPackageInfo;