Sfoglia il codice sorgente

[SugarCube] Ship typescript-result for people who can't compile it and disable typescript in bat-file if node isn't installed.

Stephan Fuchs 2 mesi fa
parent
commit
c236007a13
2 ha cambiato i file con 10 aggiunte e 2 eliminazioni
  1. 10 2
      buildHTML.bat
  2. 0 0
      qsrc2tw/twine-code/-generatedFromTS/typescript-min.js

+ 10 - 2
buildHTML.bat

@@ -6,8 +6,16 @@ PUSHD %1
 cd ./qsrc2tw/tools/QSRC2TW
 CALL QSRC2TW.exe -in "%LOCATIONS%" -out "../../twine-code"
 cd ../..
-call npx tsc
-call npx esbuild "temp/typescript.js" --minify --outfile="twine-code/-generated/typescript-min.js"
+
+REM Check if node is installed
+node -v 2> Nul
+if "%errorlevel%" == "9009" (
+    echo node could not be found
+) else (
+	call npx tsc
+	call npx esbuild "temp/typescript.js" --minify --outfile="twine-code/-generatedFromTS/typescript-min.js"
+)
+
 POPD
 
 if %PROCESSOR_ARCHITECTURE% == AMD64 (

File diff suppressed because it is too large
+ 0 - 0
qsrc2tw/twine-code/-generatedFromTS/typescript-min.js


Some files were not shown because too many files changed in this diff