Skip to content

Commit 9074ec9

Browse files
author
Giovanni Cerqui | NET GmbH
committed
chore: run viv-debug via ts-node bin instead of loader
Uses node_modules/ts-node/dist/bin-esm.js to avoid loader resolution issues. This keeps debug server running from src/app.ts and enables WebSocket path logging in %TEMP%/vivify-server.log.
1 parent 2315ea2 commit 9074ec9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

build/windows/viv-debug.cmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set "INSTALL_DIR=%~dp0..\..\"
88
set "LOG_PATH=%TEMP%\vivify-server.log"
99
set "OUT_LOG=%TEMP%\vivify-server.out.log"
1010
set "ERR_LOG=%TEMP%\vivify-server.err.log"
11-
set "TS_NODE_LOADER=%INSTALL_DIR%node_modules\ts-node\esm.mjs"
11+
set "TS_NODE_BIN=%INSTALL_DIR%node_modules\ts-node\dist\bin-esm.js"
1212
1313
echo [%DATE% %TIME%] viv-debug starting > "%LOG_PATH%"
1414
@@ -23,8 +23,8 @@ if not exist "%INSTALL_DIR%src\app.ts" (
2323
exit /b 1
2424
)
2525
26-
if not exist "%TS_NODE_LOADER%" (
27-
echo [%DATE% %TIME%] ERROR: ts-node loader not found at %TS_NODE_LOADER% >> "%LOG_PATH%"
26+
if not exist "%TS_NODE_BIN%" (
27+
echo [%DATE% %TIME%] ERROR: ts-node bin not found at %TS_NODE_BIN% >> "%LOG_PATH%"
2828
echo [%DATE% %TIME%] Run: yarn install (or npm install) in %INSTALL_DIR% >> "%LOG_PATH%"
2929
exit /b 1
3030
)
@@ -35,8 +35,8 @@ set "NODE_ENV=development"
3535
3636
pushd "%INSTALL_DIR%"
3737
38-
rem Run server from source (uses ts-node loader) and capture stdout/stderr
39-
start /b "" node --loader "%TS_NODE_LOADER%" "%INSTALL_DIR%src\app.ts" %* > "%OUT_LOG%" 2> "%ERR_LOG%"
38+
rem Run server from source (ts-node CLI) and capture stdout/stderr
39+
start /b "" node "%TS_NODE_BIN%" "%INSTALL_DIR%src\app.ts" %* > "%OUT_LOG%" 2> "%ERR_LOG%"
4040
4141
echo [%DATE% %TIME%] viv-debug launched ts-node server >> "%LOG_PATH%"
4242

0 commit comments

Comments
 (0)