mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-21 15:17:40 +00:00
Merge pull request #10496 from keymanapp/chore/developer/10487-source-maps-for-kmc
chore(developer): `--enable-source-maps` parameter for kmc wrapper
This commit is contained in:
commit
4cd2cd4498
1 changed files with 12 additions and 4 deletions
|
|
@ -1,4 +1,12 @@
|
|||
@rem This script avoids path dependencies for node for distribution
|
||||
@rem with Keyman Developer. When used on platforms other than Windows,
|
||||
@rem node can be used directly with the compiler (`npm link` will setup).
|
||||
@"%~dp0\node.js\node.exe" "%~dp0\kmc\kmc.mjs" %*
|
||||
@echo off
|
||||
rem This script avoids path dependencies for node for distribution
|
||||
rem with Keyman Developer. When used on platforms other than Windows,
|
||||
rem node can be used directly with the compiler (`npm link` will setup).
|
||||
if "%1" == "--enable-source-maps" (
|
||||
set ESM=--enable-source-maps
|
||||
shift
|
||||
) else (
|
||||
set ESM=
|
||||
)
|
||||
"%~dp0\node.js\node.exe" %ESM% "%~dp0\kmc\kmc.mjs" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
exit /b %errorlevel%
|
||||
Loading…
Add table
Reference in a new issue