Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fix soupify with node not working
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Apr 4, 2024
1 parent c6d66ed commit df9d548
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/soupify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ console.log(JSON.stringify(elements))
`.trim()
)

const runtime = ctx.runtime === "node" ? "npx tsx" : "bun"
const processCmdPart1 =
ctx.runtime === "node" ? $`npx tsx ${tmpFilePath}` : $`bun ${tmpFilePath}`

const processResult = await $`${runtime} ${tmpFilePath}`
const processResult = await processCmdPart1
.stdout("piped")
.stderr("piped")
.noThrow()
Expand Down

0 comments on commit df9d548

Please sign in to comment.