Skip to content

Commit 9b51bc8

Browse files
committed
Sort in _get_workspace_packages
1 parent 735b462 commit 9b51bc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_releaser/npm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def get_package_versions(version):
149149
message += f'\nnpm version: {data["name"]}: {npm_version}'
150150
if "workspaces" in data:
151151
message += "\nnpm workspace versions:"
152-
for path in sorted(_get_workspace_packages(data)):
152+
for path in _get_workspace_packages(data):
153153
text = path.joinpath("package.json").read_text(encoding="utf-8")
154154
data = json.loads(text)
155155
message += f'\n{data["name"]}: {data.get("version", "")}'
@@ -199,4 +199,4 @@ def _get_workspace_packages(data):
199199
continue
200200
paths.append(sub_package)
201201

202-
return paths
202+
return sorted(paths)

0 commit comments

Comments
 (0)