export function GetManifests()

in src/manifest.ts [95:114]


export function GetManifests(manifestPaths: string[]): string[] {
  const fullPathSet: Set<string> = new Set<string>();

  manifestPaths.forEach((manifestPath) => {
    const extension = path.extname(manifestPath);
    if (fs.lstatSync(manifestPath).isDirectory()) {
      GetManifestsFromDir(manifestPath).forEach((file) => {
        fullPathSet.add(file);
      });
    } else if (MANIFEST_EXTENSIONS.includes(extension)) {
      fullPathSet.add(manifestPath);
    } else {
      core.debug(
        `Detected non-manifest file in manifest path: ${manifestPath} `
      );
    }
  });

  return Array.from(fullPathSet);
}