File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1602,9 +1602,7 @@ async function resolveExtras(
1602
1602
}
1603
1603
fontdirs . add ( font_cache ) ;
1604
1604
}
1605
- const srcDir = Deno . env . get ( "QUARTO_SRC_PATH" ) ||
1606
- join ( quartoConfig . sharePath ( ) , "../../src" ) ;
1607
- fontdirs . add ( join ( srcDir , 'resources/fonts' ) ) ;
1605
+ fontdirs . add ( join ( quartoConfig . srcPath ( ) , "resources/fonts" ) ) ;
1608
1606
let fontPaths = format . metadata [ kFontPaths ] as Array < string > || [ ] ;
1609
1607
if ( typeof fontPaths === "string" ) {
1610
1608
fontPaths = [ fontPaths ] ;
Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ export function createDevConfig(
38
38
scriptDir : string ,
39
39
) : DevConfig {
40
40
const scriptPath = join ( scriptDir , "quarto" + ( isWindows ? ".cmd" : "" ) ) ;
41
- const srcDir = Deno . env . get ( "QUARTO_SRC_PATH" ) ||
42
- join ( quartoConfig . sharePath ( ) , "../../src" ) ;
41
+ const srcDir = quartoConfig . srcPath ( ) ;
43
42
return {
44
43
deno,
45
44
deno_dom,
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ export const quartoConfig = {
31
31
binPath : ( ) => getenv ( "QUARTO_BIN_PATH" ) ,
32
32
toolsPath : ( ) => join ( getenv ( "QUARTO_BIN_PATH" ) , "tools" ) ,
33
33
sharePath : ( ) => getenv ( "QUARTO_SHARE_PATH" ) ,
34
+ srcPath : ( ) =>
35
+ getenv ( "QUARTO_SRC_PATH" , "" ) ||
36
+ normalizePath ( join ( quartoConfig . sharePath ( ) , "../../src" ) ) ,
34
37
isDebug : ( ) => getenv ( "QUARTO_DEBUG" , "false" ) === "true" ,
35
38
version : ( ) => {
36
39
const forceVersion = getenv ( "QUARTO_FORCE_VERSION" , "" ) ;
You can’t perform that action at this time.
0 commit comments