typst: add support to instantiate typst with a set of typst packages

This commit is contained in:
Gongqi Huang 2025-01-01 15:57:58 +01:00
parent d976d61d9e
commit c47a2a8ac7
4 changed files with 42 additions and 2 deletions

View file

@ -115,7 +115,7 @@ class TypstPackage:
hash=source_hash,
typstDeps=[
self.package_name_full(p, v)
for p, v in sorted(self.deps, key=lambda x: x[0])
for p, v in sorted(self.deps, key=lambda x: (x[0], Version(x[1])))
],
description=self.description,
license=self.license_tokens(),