File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -166,12 +166,17 @@ def tag_workspace_packages():
166
166
167
167
data = json .loads (PACKAGE_JSON .read_text (encoding = "utf-8" ))
168
168
tags = util .run ("git tag" ).splitlines ()
169
- if not "workspaces" in data :
169
+ if "workspaces" not in data :
170
170
return
171
171
172
172
for pattern in _get_workspace_packages (data ):
173
173
for path in glob (pattern , recursive = True ):
174
- sub_package_json = Path (path ) / "package.json"
174
+ sub_package = Path (path )
175
+ if not sub_package .is_dir ():
176
+ continue
177
+ sub_package_json = sub_package / "package.json"
178
+ if not sub_package_json .exists ():
179
+ continue
175
180
sub_data = json .loads (sub_package_json .read_text (encoding = "utf-8" ))
176
181
tag_name = f"{ sub_data ['name' ]} @{ sub_data ['version' ]} "
177
182
if tag_name in tags :
You can’t perform that action at this time.
0 commit comments