mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-12-27 09:12:09 -05:00
Added a way to infer version name from a filename
This commit is contained in:
parent
dde2a04f94
commit
3eb68e07b5
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ export function packModrinthVersionInit(version: ModrinthVersionInit): ModrinthV
|
|||
...{ ...version, files: undefined },
|
||||
|
||||
// Default values
|
||||
name: version.name || version.version_number,
|
||||
name: version.name || version.version_number || files[0] && FileInfo.of(files[0]).name,
|
||||
version_type: version.version_type ?? VersionType.RELEASE,
|
||||
featured: version.featured ?? true,
|
||||
dependencies: version.dependencies ?? [],
|
||||
|
|
Loading…
Reference in a new issue