Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion src/core/run/deno.ts
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am using quartoConfig from ../quarto.ts

If this is not ok to import from this file in deno.ts, then we could directly read the env var

getenv("QUARTO_DEBUG", "false") === "true"

Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions tests/docs/run/test-stdlib.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// Temporarily turn this off.
// import { readLines } from "stdlib/io";
import { readLines } from "stdlib/io";
Loading