We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Deno.execPath()
deno task
deno
1 parent 9c4bf64 commit 8b39db5Copy full SHA for 8b39db5
1 file changed
src/webui/quarto-preview/build.ts
@@ -1,3 +1,5 @@
1
+import { dirname } from "node:path";
2
+
3
// ensure this is treated as a module
4
export {};
5
@@ -20,6 +22,13 @@ const run = async (args: string[], quiet = true) => {
20
22
console.log(`Running: ${Deno.execPath()} ${args.join(" ")}`);
21
23
const command = new Deno.Command(Deno.execPath(), {
24
args,
25
+ env: Deno.build.os === "windows"
26
+ ? {
27
+ PATH: `${dirname(Deno.execPath())}${
28
+ Deno.env.get("PATH") ? `;${Deno.env.get("PATH")}` : ""
29
+ }`,
30
+ }
31
+ : undefined,
32
});
33
const output = await command.output();
34
if (output.success || quiet) {
0 commit comments