Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions start.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ if errorlevel 1 (
exit /b
)

for /f "tokens=2 delims=v." %%i in ('node -v') do set "node_major=%%i"
if %node_major% lss 22 (
echo Node 22 or newer is required. Detected %node_major%
exit /b
)

where /q bun
if errorlevel 1 (
npm i -g bun
Expand Down
10 changes: 8 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ if ! command -v git 2>&1 >/dev/null; then
fi

if ! command -v node 2>&1 >/dev/null; then
echo You must install Node to proceed
exit 1
echo You must install Node to proceed
exit 1
fi

node_major=$(node --version | sed 's/^v//' | cut -d'.' -f1)
if [ "$node_major" -lt 22 ]; then
echo Node 22 or newer is required. Detected $(node --version)
exit 1
fi

if ! command -v bun 2>&1 >/dev/null; then
Expand Down