spiegel-keyman/developer/src/tike/kmlmc.cmd
Marc Durdin 1dd4fe5315 chore(developer): enable source maps for kmc commands
Fixes #7408.

For kmc*.cmd, enables source maps. If you are running kmc from node on
your own system, you may need to enable source maps in other ways.

Note that error reports should be going through to Sentry, and source
maps should already be used for those.
2022-10-06 17:48:22 +11:00

20 lines
746 B
Batchfile

@echo off
setlocal
rem This script is based on /developer/src/node/inst/kmlmc.cmd. It is stored here
rem in order to allow TIKE to call out to the compiler while debugging.
if exist "%~dp0..\inst\node\dist\node.exe" (
rem If running in developer/src/tike/:
set nodeexe="%~dp0..\inst\node\dist\node.exe"
set nodecli="%~dp0..\kmc\build\src\kmlmc.js"
) else if exist "%~dp0..\src\inst\node\dist\node.exe" (
rem If running in developer/bin/:
set nodeexe="%~dp0..\src\inst\node\dist\node.exe"
set nodecli="%~dp0..\src\kmc\build\src\kmlmc.js"
) else (
rem Cannot find node or kmlmc.js relative to execution path
echo Error: node.exe or kmlmc.js not found.
exit /b 1
)
%nodeexe% --enable-source-maps %nodecli% %*
exit /b %errorlevel%