Skip to content

Commit

Permalink
Add the missing compiledPDFPath
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Dec 7, 2023
1 parent 29ee757 commit fca14a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/compile/external.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
1 change: 1 addition & 0 deletions src/compile/recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit fca14a1

Please sign in to comment.