Skip to content

Commit de7ad24

Browse files
committed
Don't use --cached-only with quarto run in dev mode.
1 parent bf95341 commit de7ad24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/run/deno.ts

Lines changed: 3 additions & 1 deletion
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",

0 commit comments

Comments
 (0)