code: 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;
  }
docs: /* eslint-enable