Skip to content

Commit 1b8253d

Browse files
authored
Fix version message for workspace package
1 parent b334730 commit 1b8253d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_releaser/npm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def get_package_versions(version):
155155
for path in glob(pattern, recursive=True):
156156
text = Path(path).joinpath("package.json").read_text()
157157
data = json.loads(text)
158-
message += f'\n{data["name"]}: {npm_version}'
158+
message += f'\n{data["name"]}: {data.get("version", "")}'
159159
return message
160160

161161

0 commit comments

Comments
 (0)