File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
functions/src/logic/ingestUnityVersions Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 11nodeLinker : node-modules
2+
3+ npmRegistryServer : " https://registry.npmjs.org/"
Original file line number Diff line number Diff line change @@ -5,6 +5,15 @@ const unity_version_regex = /^(\d+)\.(\d+)\.(\d+)([a-zA-Z]+)(-?\d+)$/;
55
66export 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
You can’t perform that action at this time.
0 commit comments