File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 </ div >
2626 < div id ="editor-output-terminal ">
2727 < div id ="editor-output-terminal-header ">
28- TypescriptToLua version 0.23.0
28+ TypescriptToLua version ...
2929 </ div >
3030 < div id ="editor-output-terminal-content ">
3131 </ div >
Original file line number Diff line number Diff line change @@ -11,13 +11,17 @@ import FengariWorker = require('worker-loader?name=fengari.worker.js!./fengariWo
1111import * as tstl from 'typescript-to-lua/dist/LuaAST' ;
1212
1313const renderjson = require ( "renderjson" ) ;
14+ const tstlPackageJson = require ( "typescript-to-lua/package.json" ) ;
1415
1516document . addEventListener ( 'DOMContentLoaded' , ( ) => {
1617 const container = document . getElementById ( 'editor-ts' ) ;
18+ const outputTerminalHeader = document . getElementById ( 'editor-output-terminal-header' ) ;
1719 const outputTerminalContent = document . getElementById ( 'editor-output-terminal-content' ) ;
1820 const exampleLua = document . getElementById ( 'editor-lua' ) ;
1921 const astLua = document . getElementById ( 'editor-lua-ast' ) ;
2022
23+ // Set tstl version
24+ outputTerminalHeader ! . textContent = `TypescriptToLua version ${ tstlPackageJson . version } ` ;
2125
2226 // Layout stuff
2327 const luaTabText = document . getElementById ( "lua-tab-text" ) as HTMLDivElement | null ;
You can’t perform that action at this time.
0 commit comments