"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const dp = require("dependency-path");
function getPkgInfoFromShr(relativeDepPath, pkgShr) {
    if (!pkgShr.name) {
        const pkgInfo = dp.parse(relativeDepPath);
        return {
            // tslint:disable:no-string-literal
            name: pkgInfo['name'],
            version: pkgInfo['version'],
        };
    }
    return {
        name: pkgShr.name,
        version: pkgShr.version,
    };
}
exports.default = getPkgInfoFromShr;
//# sourceMappingURL=getPkgInfoFromShr.js.map