[proxy] Flatten the license script's sort comparator

This commit is contained in:
jnfrati
2026-09-23 16:11:58 +02:00
parent c3d514017d
commit 7902fedb9c
+1 -1
View File
@@ -29,7 +29,7 @@ function fail(message) {
function shippedPackages(lock) {
return Object.entries(lock.packages)
.filter(([path, meta]) => path !== "" && (!meta.dev || bundledTooling.has(path)))
.sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0));
.sort(([a], [b]) => Number(a > b) - Number(a < b));
}
function packageSection(path, meta) {