Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/core/run/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,19 @@ export const denoRunHandler: RunHandler = {

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

const noNet = Deno.env.get("QUARTO_RUN_NO_NETWORK") === "true";

// --cached-only can only be used in bundles as vendoring is not done anymore in dev mode
const cachedOnly = noNet;

return await execProcess(
{
cmd: [
architectureToolsPath("deno"),
"run",
"--import-map",
importMap,
// --cached-only can only be used in bundles as vendoring is not done anymore in dev mode
...(quartoConfig.isDebug() ? [] : ["--cached-only"]),
...(cachedOnly ? ["--cached-only"] : []),
"--allow-all",
"--unstable-kv",
"--unstable-ffi",
Expand Down
Loading