diff --git a/src/core/run/deno.ts b/src/core/run/deno.ts index 96111b4de6b..2f3af8fdd99 100644 --- a/src/core/run/deno.ts +++ b/src/core/run/deno.ts @@ -12,6 +12,7 @@ import { architectureToolsPath, resourcePath } from "../resources.ts"; import { RunHandler, RunHandlerOptions } from "./types.ts"; import { removeIfExists } from "../path.ts"; import { copyTo } from "../copy.ts"; +import { quartoConfig } from "../quarto.ts"; export const denoRunHandler: RunHandler = { canHandle: (script: string) => { @@ -42,7 +43,8 @@ export const denoRunHandler: RunHandler = { "run", "--import-map", importMap, - "--cached-only", + // --cached-only can only be used in bundles as vendoring is not done anymore in dev mode + ...(quartoConfig.isDebug() ? [] : ["--cached-only"]), "--allow-all", "--unstable-kv", "--unstable-ffi", diff --git a/tests/docs/run/test-stdlib.ts b/tests/docs/run/test-stdlib.ts index 0e4f0bb2af2..1c4c85ea7ce 100644 --- a/tests/docs/run/test-stdlib.ts +++ b/tests/docs/run/test-stdlib.ts @@ -1,2 +1 @@ -// Temporarily turn this off. -// import { readLines } from "stdlib/io"; +import { readLines } from "stdlib/io";