function updateDependencies(dependencies, name, path) {
    const local = { ...dependencies };
    Object.keys(local).forEach((dependency) => {
        if (isString(local[dependency])) {
            local[dependency] = {
                version: local[dependency],
            };
        }
        local[dependency] = {
            ...local[dependency],
            context: path,
            extension: name,
        };
    });

    return local;
}
function updateDependencies(dependencies, name, path) {
    const local = { ...dependencies };
    Object.keys(local).forEach((dependency) => {
        if (isString(local[dependency])) {
            local[dependency] = {
                version: local[dependency],
            };
        }
        local[dependency] = {
            ...local[dependency],
            context: path,
            extension: name,
        };
    });

    return local;
}
function updateDependencies ( dependencies , name , path ) { const local = { ... dependencies } ; Object . keys ( local ) . forEach ( ( dependency ) => { if ( isString ( local [ dependency ] ) ) { local [ dependency ] = { version : local [ dependency ] , } ; } local [ dependency ] = { ... local [ dependency ] , context : path , extension : name , } ; } ) ; return local ; }
/* eslint-enable
/ * eslint - enable