diff options
Diffstat (limited to 'examples/spawn.ts')
-rw-r--r-- | examples/spawn.ts | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/examples/spawn.ts b/examples/spawn.ts index a590a94f3..d72a118b9 100644 --- a/examples/spawn.ts +++ b/examples/spawn.ts @@ -8,7 +8,7 @@ const target = basename(repo) + "-main"; console.log("Downloading", repo, "to", "/tmp/" + target); const archive = await fetch( - `https://github.com/${repo}/archive/refs/heads/main.tar.gz` + `https://github.com/${repo}/archive/refs/heads/main.tar.gz`, ); // remove the directory if it already exists locally @@ -29,14 +29,11 @@ await tar.exited; if (!which("vercel")) { console.log("Installing vercel..."); - const installer = spawn( - { cmd: ["bun", "install", "-g", "vercel"] }, - { - stderr: "inherit", - stdout: "inherit", - stdin: "inherit", - } - ); + const installer = spawn(["bun", "install", "-g", "vercel"], { + stderr: "inherit", + stdout: "inherit", + stdin: "inherit", + }); await installer.exited; if (!which("vercel")) { |