feat(typst): add typst step (#1374)

This commit is contained in:
Stef
2025-10-26 12:57:59 +01:00
committed by GitHub
parent 5fad9f0ec6
commit e5b3ed1461
2 changed files with 11 additions and 0 deletions

View File

@@ -149,6 +149,7 @@ pub enum Step {
Tlmgr,
Tmux,
Toolbx,
Typst,
Uv,
Vagrant,
Vcpkg,
@@ -615,6 +616,7 @@ impl Step {
#[cfg(target_os = "linux")]
runner.execute(*self, "toolbx", || toolbx::run_toolbx(ctx))?
}
Typst => runner.execute(*self, "Typst", || generic::run_typst(ctx))?,
Uv => runner.execute(*self, "uv", || generic::run_uv(ctx))?,
Vagrant => {
if ctx.config().should_run(Vagrant) {
@@ -877,6 +879,7 @@ pub(crate) fn default_steps() -> Vec<Step> {
Powershell,
CustomCommands,
Vagrant,
Typst,
]);
steps.shrink_to_fit();

View File

@@ -1751,3 +1751,11 @@ pub fn run_yazi(ctx: &ExecutionContext) -> Result<()> {
ctx.execute(ya).args(["pkg", "upgrade"]).status_checked()
}
pub fn run_typst(ctx: &ExecutionContext) -> Result<()> {
let typst = require("typst")?;
print_separator("Typst");
ctx.execute(typst).args(["update"]).status_checked()
}