@echo off
set "BOLLOON_ROOT=%~dp0"
set "BOLLOON_ROOT=%BOLLOON_ROOT:~0,-1%"

REM 确定入口文件
set "ENTRY=%BOLLOON_ROOT%\dist\index.js"
if not exist "%ENTRY%" (
    set "ENTRY=%BOLLOON_ROOT%\src\index.ts"
)

node "%ENTRY%" %*
