diff --git a/src/compile/external.ts b/src/compile/external.ts index bac9d6243..3cc3aee64 100644 --- a/src/compile/external.ts +++ b/src/compile/external.ts @@ -44,6 +44,7 @@ export async function build(command: string, args: string[], pwd: string, buildL // Add the build tool to the queue for execution queue.add(tool, rootFile, 'External', Date.now(), true, cwd) + lw.compile.compiledPDFPath = rootFile ? lw.file.getPdfPath(rootFile) : '' // Execute the build loop await buildLoop() } diff --git a/src/compile/recipe.ts b/src/compile/recipe.ts index fb3d546bf..ab8522090 100644 --- a/src/compile/recipe.ts +++ b/src/compile/recipe.ts @@ -53,6 +53,7 @@ export async function build(rootFile: string, langId: string, buildLoop: () => P const timestamp = Date.now() tools.forEach(tool => queue.add(tool, rootFile, recipeName || 'Build', timestamp)) + lw.compile.compiledPDFPath = lw.file.getPdfPath(rootFile) // Execute the build loop await buildLoop() }