Skip to content

Commit 85f2378

Browse files
authored
Merge pull request #10972 from quarto-dev/fix/deno-update-test
Don't use deno cache with Quarto run when using dev version
2 parents 540d27f + 5e4f37a commit 85f2378

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/core/run/deno.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { architectureToolsPath, resourcePath } from "../resources.ts";
1212
import { RunHandler, RunHandlerOptions } from "./types.ts";
1313
import { removeIfExists } from "../path.ts";
1414
import { copyTo } from "../copy.ts";
15+
import { quartoConfig } from "../quarto.ts";
1516

1617
export const denoRunHandler: RunHandler = {
1718
canHandle: (script: string) => {
@@ -42,7 +43,8 @@ export const denoRunHandler: RunHandler = {
4243
"run",
4344
"--import-map",
4445
importMap,
45-
"--cached-only",
46+
// --cached-only can only be used in bundles as vendoring is not done anymore in dev mode
47+
...(quartoConfig.isDebug() ? [] : ["--cached-only"]),
4648
"--allow-all",
4749
"--unstable-kv",
4850
"--unstable-ffi",

tests/docs/run/test-stdlib.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// Temporarily turn this off.
2-
// import { readLines } from "stdlib/io";
1+
import { readLines } from "stdlib/io";

0 commit comments

Comments
 (0)