Skip to content

Commit 8136c73

Browse files
authored
Merge pull request #11493 from quarto-dev/bugfix/quarto-run-typescript
run - remove --cached-only by default, see #11219
2 parents bf93178 + e7d0702 commit 8136c73

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/core/run/deno.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,19 @@ export const denoRunHandler: RunHandler = {
3636

3737
const importMap = normalize(join(denoDir, "../run_import_map.json"));
3838

39+
const noNet = Deno.env.get("QUARTO_RUN_NO_NETWORK") === "true";
40+
41+
// --cached-only can only be used in bundles as vendoring is not done anymore in dev mode
42+
const cachedOnly = noNet;
43+
3944
return await execProcess(
4045
{
4146
cmd: [
4247
architectureToolsPath("deno"),
4348
"run",
4449
"--import-map",
4550
importMap,
46-
// --cached-only can only be used in bundles as vendoring is not done anymore in dev mode
47-
...(quartoConfig.isDebug() ? [] : ["--cached-only"]),
51+
...(cachedOnly ? ["--cached-only"] : []),
4852
"--allow-all",
4953
"--unstable-kv",
5054
"--unstable-ffi",

0 commit comments

Comments
 (0)