mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
13
scripts/bd
Executable file
13
scripts/bd
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
LOG_FILE="${TMPDIR:-/tmp}/bun.debug.build.log.$$"
|
||||
|
||||
if bun run --silent build:debug > "$LOG_FILE" 2>&1; then
|
||||
rm -f "$LOG_FILE"
|
||||
exec ./build/debug/bun-debug "$@"
|
||||
else
|
||||
status=$?
|
||||
cat "$LOG_FILE"
|
||||
rm -f "$LOG_FILE"
|
||||
exit "$status"
|
||||
fi
|
||||
2
scripts/bd.bat
Normal file
2
scripts/bd.bat
Normal file
@@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
pwsh -File "%~dp0bd.ps1" %*
|
||||
10
scripts/bd.ps1
Normal file
10
scripts/bd.ps1
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
$buildOutput = & bun run --silent build:debug 2>&1
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Output $buildOutput
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
& ./build/debug/bun-debug @args
|
||||
exit $LASTEXITCODE
|
||||
Reference in New Issue
Block a user