mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
feat: add geyser extension detection
This commit is contained in:
@@ -236,6 +236,17 @@ export function createLoaderParsers(
|
|||||||
loaders: ['sponge'],
|
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
|
// Modpacks
|
||||||
'modrinth.index.json': (file: string): InferredVersionInfo => {
|
'modrinth.index.json': (file: string): InferredVersionInfo => {
|
||||||
const metadata = JSON.parse(file) as any
|
const metadata = JSON.parse(file) as any
|
||||||
|
|||||||
Reference in New Issue
Block a user