Skip to content

Commit 34d2c29

Browse files
committed
fix: store authors under correct key
1 parent 784e3fb commit 34d2c29

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hatch_nodejs_version/metadata_source.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,17 @@ def update(self, metadata: dict[str, Any]):
113113

114114
new_metadata = {"name": package["name"]}
115115

116+
authors = None
117+
116118
if "author" in package:
117-
new_metadata["author"] = self._parse_person(package["author"])
119+
authors = [self._parse_person(package["author"])]
118120

119121
if "contributors" in package:
120122
new_metadata["maintainers"] = [
121123
self._parse_person(p) for p in package["contributors"]
122124
]
125+
if authors is not None:
126+
new_metadata['authors'] = authors
123127

124128
if "keywords" in package:
125129
new_metadata["keywords"] = package["keywords"]

0 commit comments

Comments
 (0)