Skip to content

Commit e09fb8e

Browse files
committed
Bring Windows script to parity: enable --cached-only in dev mode
Ports commit b44cb08 from Bash script to Windows. Enables --cached-only flag in dev mode to prevent network fetches during development, matching Bash behavior. Also sets DENO_DIR to point to the vendored deno_cache directory so dependencies are found when using --cached-only. Original commit: b44cb08 "turn on cached-only for dev as well, add puppeteer deps to cache"
1 parent 7b99ef4 commit e09fb8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package/scripts/windows/quarto.cmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ IF EXIST "!QUARTO_TS_PATH!" (
3333
call !QUARTO_ROOT!\win_configuration.bat
3434
REM overrride share path to point to our dev folder instead of dist
3535
set QUARTO_SHARE_PATH=!QUARTO_ROOT!\src\resources
36+
set "QUARTO_BIN_PATH=%SCRIPT_PATH%"
37+
set "DENO_DIR=%QUARTO_BIN_PATH%deno_cache"
3638

3739
IF NOT DEFINED QUARTO_ACTION (
3840
SET QUARTO_ACTION=run
@@ -67,7 +69,7 @@ IF EXIST "!QUARTO_TS_PATH!" (
6769
echo !DENO!>"!DENO_VERSION_FILE!"
6870
)
6971

70-
SET QUARTO_CACHE_OPTIONS=
72+
SET QUARTO_CACHE_OPTIONS=--cached-only
7173

7274
REM Turn on type checking for dev version
7375
SET QUARTO_DENO_OPTIONS=--check

0 commit comments

Comments
 (0)