Skip to content

Commit

Permalink
chore: pass env to bench subprocesses
Browse files Browse the repository at this point in the history
This will ensure CodSpeed flamegraphs work
  • Loading branch information
adriencaccia committed May 3, 2024
1 parent 0298297 commit 59216bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ async function run(benchmarks: string[]) {
try {
await execa.command(`pnpm tsx ${location}`, {
stdio: 'inherit',
env: process.env,
})
} catch (e) {
console.error(e)
Expand Down

0 comments on commit 59216bb

Please sign in to comment.