scripts/release/packages/plugins/updatePackages/index.js
function updateDeps(deps, packages, version) {
    const lib = {};
    _.each(packages, pkg => {
        lib[pkg.name] = version;
    });

    _.each(deps, (v, dep) => {
        if (dep in lib) {
            deps[dep] = "^" + version;
        }
    });
}
function updateDeps(deps, packages, version) {
    const lib = {};
    _.each(packages, pkg => {
        lib[pkg.name] = version;
    });

    _.each(deps, (v, dep) => {
        if (dep in lib) {
            deps[dep] = "^" + version;
        }
    });
}
Update package.json of the package with its new version and new versions of all dependencies

@param deps
@param packages
@param version