Skip to content

Commit 3055a7b

Browse files
authored
feat: support xlts versions (enterprise images) (#68)
* feat: support xlts versions (enterprise images) * chore: change registry
1 parent 0b3d7c8 commit 3055a7b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
nodeLinker: node-modules
2+
3+
npmRegistryServer: "https://registry.npmjs.org/"

functions/src/logic/ingestUnityVersions/scrapeVersions.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ const unity_version_regex = /^(\d+)\.(\d+)\.(\d+)([a-zA-Z]+)(-?\d+)$/;
55

66
export const scrapeVersions = async (): Promise<EditorVersionInfo[]> => {
77
const unityVersions = await searchChangesets(SearchMode.Default);
8+
const unityXltsVersions = await searchChangesets(SearchMode.XLTS);
9+
10+
// Merge XLTS versions into main list, avoiding duplicates
11+
const existingVersions = new Set(unityVersions.map((v) => v.version));
12+
for (const xltsVersion of unityXltsVersions) {
13+
if (!existingVersions.has(xltsVersion.version)) {
14+
unityVersions.push(xltsVersion);
15+
}
16+
}
817

918
if (unityVersions?.length > 0) {
1019
return unityVersions

0 commit comments

Comments
 (0)