diff --git a/helpers/build-app-list.js b/helpers/build-app-list.js index 6962396..645001c 100644 --- a/helpers/build-app-list.js +++ b/helpers/build-app-list.js @@ -283,6 +283,7 @@ export default async function () { let bundleId = null let tags = [] + let aliases = [] // Search for this app in the scanList and remove duplicates scanListMap.forEach( ( scannedApp, key ) => { @@ -301,6 +302,12 @@ export default async function () { ...scannedApp.tags ])) + // Merge as set then convert to array to prevent duplicates + aliases = Array.from(new Set([ + ...aliases, + ...scannedApp.aliases + ])) + console.log(`Merged ${alias} (${scannedApp.bundleId}) from scanned apps into ${name} from README`) scanListMap.delete( key ) } @@ -342,6 +349,7 @@ export default async function () { appList.push({ name, + aliases, status, bundleId, lastUpdated,