Repository navigation
feat: import the Typst package from Typst Universe - #17
Merged
Merged
Conversation
The sortes Typst package is published on Typst Universe as @preview/sortes:0.1.0. The template bank, the docs and the examples import it from there, so anyone writing the bank (a TA, say) needs only Typst, not the CLI. The CLI no longer installs @local/sortes. The package now has its own version, separate from the CLI's: `make typst-version` sets it and its imports, and `make version` sets only the CLI's. The end-to-end tests put this repo's package into their own TYPST_PACKAGE_PATH as @preview/sortes, so they stay offline and test the repo's lib.typ.
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge, with a non-blocking upgrade note still needed for existing courses. Findings
SummaryThe PR switches banks and exams to the published Typst package.
Reviews (2) · Last reviewed commit: "feat: import the Typst package from Typs..." · Reviewed by Greptile |
Comment on lines
+21
to
+22
| `bank.typ` imports the sortes Typst package from Typst Universe as `@preview/sortes:0.1.0`. | ||
| Typst downloads it the first time it compiles the bank or an exam. |
There was a problem hiding this comment.
Existing courses lack upgrade instructions
The docs only explain newly created courses. Existing banks and exams still import @local/sortes:1.0.0, but the CLI no longer installs that package, and sortes init leaves existing files unchanged. On a fresh machine, those courses fail to build.
Add an upgrade note telling users to change the imports in both the bank and exams to @preview/sortes:0.1.0.
Deploying sortes with
|
| Latest commit: |
7041517
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://cda14c98.sortes-5eu.pages.dev |
| Branch Preview URL: | https://typst-universe.sortes-5eu.pages.dev |
wiseodd
force-pushed
the
typst-universe
branch
from
December 1, 2026 20:02
a4e0c2b to
7041517
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The sortes Typst package is published on Typst Universe as @preview/sortes:0.1.0. The template bank, the docs and the examples import it from there, so anyone writing the bank (a TA, say) needs only Typst, not the CLI.
The CLI no longer installs @local/sortes. The package now has its own version, separate from the CLI's:
make typst-versionsets it and its imports, andmake versionsets only the CLI's. The end-to-end tests put this repo's package into their own TYPST_PACKAGE_PATH as @preview/sortes, so they stay offline and test the repo's lib.typ.