fix(cli): include export in compile time (#1816)

This commit is contained in:
Wenzhuo Liu 2023-08-03 06:31:28 +08:00 committed by GitHub
parent cd163868f5
commit 733c5c9913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,6 @@ pub fn compile_once(
let mut tracer = Tracer::default();
let result = typst::compile(world, &mut tracer);
let duration = start.elapsed();
let warnings = tracer.warnings();
@ -57,6 +56,7 @@ pub fn compile_once(
// Export the PDF / PNG.
Ok(document) => {
export(&document, command)?;
let duration = start.elapsed();
tracing::info!("Compilation succeeded in {duration:?}");
if watching {