@@ -362,7 +362,8 @@ export async function projectContext(
362
362
} else {
363
363
debug ( `projectContext: Found Quarto project in ${ dir } ` ) ;
364
364
const temp = createTempContext ( {
365
- dir : join ( dir , ".quarto" , "temp" ) ,
365
+ dir : join ( dir , ".quarto" ) ,
366
+ prefix : "quarto-session-temp" ,
366
367
} ) ;
367
368
const fileInformationCache = new Map ( ) ;
368
369
const result : ProjectContext = {
@@ -410,6 +411,7 @@ export async function projectContext(
410
411
cleanup : ( ) => {
411
412
cleanupFileInformationCache ( result ) ;
412
413
result . diskCache . close ( ) ;
414
+ temp . cleanup ( ) ;
413
415
} ,
414
416
} ;
415
417
const { files, engines } = await projectInputFiles (
@@ -433,7 +435,10 @@ export async function projectContext(
433
435
dir = originalDir ;
434
436
configResolvers . shift ( ) ;
435
437
} else if ( force ) {
436
- const temp = globalTempContext ( ) ;
438
+ const temp = createTempContext ( {
439
+ dir : join ( originalDir , ".quarto" ) ,
440
+ prefix : "quarto-session-temp" ,
441
+ } ) ;
437
442
const fileInformationCache = new Map ( ) ;
438
443
const context : ProjectContext = {
439
444
resolveBrand : async ( fileName ?: string ) =>
@@ -484,6 +489,7 @@ export async function projectContext(
484
489
cleanup : ( ) => {
485
490
cleanupFileInformationCache ( context ) ;
486
491
context . diskCache . close ( ) ;
492
+ temp . cleanup ( ) ;
487
493
} ,
488
494
} ;
489
495
if ( Deno . statSync ( path ) . isDirectory ) {
0 commit comments