Ver Fonte

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

Stephan Fuchs há 2 meses atrás
pai
commit
c236007a13
2 ficheiros alterados com 10 adições e 2 exclusões
  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 (

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
qsrc2tw/twine-code/-generatedFromTS/typescript-min.js


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff