You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/scripts/npm_publish
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -194,6 +194,21 @@ check_licenses() {
194
194
return 0
195
195
}
196
196
197
+
# Checks that the project can be sorted topologically.
198
+
check_toposort() {
199
+
echo'Performing a topological sort...'>&2
200
+
make list-pkgs-toposort >/dev/null
201
+
if [[ "$?"-ne 0 ]];then
202
+
echo''>&2
203
+
echo'Error: unexpected error. Unable to perform a topological sort. This is likely due to a dependency cycle. Please resolve before publishing. Command: make list-pkgs-toposort.'>&2
204
+
echo''>&2
205
+
return 1
206
+
fi
207
+
echo'Successfully performed a topological sort.'>&2
0 commit comments