code: function relativize(globPattern, relativePathToOldBaseDir) {
      if (relativePathToOldBaseDir === "") {
          return globPattern;
      }
  
      const prefix = globPattern.startsWith("!") ? "!" : "";
      const globWithoutPrefix = globPattern.replace(/^!/u, "");
  
      if (globWithoutPrefix.startsWith("/")) {
          return `${prefix}/${normalizePathSeps(relativePathToOldBaseDir)}${globWithoutPrefix}`;
      }
  
      return globPattern;
  }
docs: /* eslint-enable valid-jsdoc 
  Converts a glob pattern to a new glob pattern relative to a different directory
  @param {string} globPattern The glob pattern, relative the the old base directory
  @param {string} relativePathToOldBaseDir A relative path from the new base directory to the old one
  @returns {string} A glob pattern relative to the new base directory