mirror of
https://github.com/typst/typst
synced 2025-06-28 16:22: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 mut tracer = Tracer::default();
|
||||||
|
|
||||||
let result = typst::compile(world, &mut tracer);
|
let result = typst::compile(world, &mut tracer);
|
||||||
let duration = start.elapsed();
|
|
||||||
|
|
||||||
let warnings = tracer.warnings();
|
let warnings = tracer.warnings();
|
||||||
|
|
||||||
@ -57,6 +56,7 @@ pub fn compile_once(
|
|||||||
// Export the PDF / PNG.
|
// Export the PDF / PNG.
|
||||||
Ok(document) => {
|
Ok(document) => {
|
||||||
export(&document, command)?;
|
export(&document, command)?;
|
||||||
|
let duration = start.elapsed();
|
||||||
|
|
||||||
tracing::info!("Compilation succeeded in {duration:?}");
|
tracing::info!("Compilation succeeded in {duration:?}");
|
||||||
if watching {
|
if watching {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user