feat: handle geyser extension (#5582)

* feat: add geyser extension detection

* feat: only show geyser if inferred
This commit is contained in:
Truman Gao
2026-03-16 05:52:16 -07:00
committed by GitHub
parent 01c9dee612
commit 7fa0a277c6
3 changed files with 18 additions and 3 deletions

View File

@@ -236,6 +236,17 @@ export function createLoaderParsers(
loaders: ['sponge'],
}
},
// Geyser Extensions
'extension.yml': (file: string): InferredVersionInfo => {
const metadata = yaml.load(file) as any
return {
name: metadata.version ? `${project.title} ${metadata.version}` : '',
version_number: metadata.version,
version_type: versionType(metadata.version),
loaders: ['geyser'],
}
},
// Modpacks
'modrinth.index.json': (file: string): InferredVersionInfo => {
const metadata = JSON.parse(file) as any