function transformToProjectNames(collections) {
    const res = {};
    // eslint-disable-next-line array-callback-return
    Object.entries(collections).map(([key, val]) => {
      res[key] = val.map(c => {
        const pkg = getPackageJson(c);
        return pkg?.name;
      });
    });
    return res;
  }
@param {object[]} collections
@returns {{[key as string]: }}