Skip to content

feat: import the Typst package from Typst Universe - #17

Merged
wiseodd merged 1 commit into
mainfrom
typst-universe
Dec 1, 2026
Merged

wiseodd merged 1 commit into
mainfrom
typst-universe

Conversation

@wiseodd

@wiseodd wiseodd commented Dec 1, 2026

Copy link
Copy Markdown
Owner

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.

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.
@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge, with a non-blocking upgrade note still needed for existing courses.

Findings

  1. P2 Existing courses lack upgrade instructions ▶

Summary

The PR switches banks and exams to the published Typst package.

  • Typst files import sortes from Typst Universe.
  • The Typst package and CLI use separate version numbers.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Deploying sortes with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7041517
Status: ✅  Deploy successful!
Preview URL: https://cda14c98.sortes-5eu.pages.dev
Branch Preview URL: https://typst-universe.sortes-5eu.pages.dev

View logs

@wiseodd
wiseodd merged commit 7d2d6c4 into main Dec 1, 2026
14 checks passed
@wiseodd
wiseodd deleted the typst-universe branch December 1, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant