fix: add deno compile entry (#3189)

Fixes https://github.com/denoland/fresh/issues/3123
This commit is contained in:
Marvin Hagemeister
2025-08-05 14:53:08 +02:00
committed by GitHub
parent 2f76a0a2aa
commit 71b7d922ea
6 changed files with 129 additions and 16 deletions
+10 -5
View File
@@ -96,18 +96,23 @@ export async function withBrowser(fn: (page: Page) => void | Promise<void>) {
}
export async function withChildProcessServer(
dir: string,
args: string[],
options: {
cwd: string;
args: string[];
bin?: string;
env?: Record<string, string>;
},
fn: (address: string) => void | Promise<void>,
) {
const aborter = new AbortController();
const cp = await new Deno.Command(Deno.execPath(), {
args,
const cp = await new Deno.Command(options.bin ?? Deno.execPath(), {
args: options.args,
stdin: "null",
stdout: "piped",
stderr: "piped",
cwd: dir,
cwd: options.cwd,
signal: aborter.signal,
env: options.env,
}).spawn();
const linesStdout: ReadableStream<string> = cp.stdout