mirror of
https://github.com/typst/typst
synced 2025-06-28 08:12:53 +08:00
fix(cli): include export in compile time (#1816)
This commit is contained in:
parent
cd163868f5
commit
733c5c9913
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user