File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 25
25
</ div >
26
26
< div id ="editor-output-terminal ">
27
27
< div id ="editor-output-terminal-header ">
28
- TypescriptToLua version 0.23.0
28
+ TypescriptToLua version ...
29
29
</ div >
30
30
< div id ="editor-output-terminal-content ">
31
31
</ 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
11
11
import * as tstl from 'typescript-to-lua/dist/LuaAST' ;
12
12
13
13
const renderjson = require ( "renderjson" ) ;
14
+ const tstlPackageJson = require ( "typescript-to-lua/package.json" ) ;
14
15
15
16
document . addEventListener ( 'DOMContentLoaded' , ( ) => {
16
17
const container = document . getElementById ( 'editor-ts' ) ;
18
+ const outputTerminalHeader = document . getElementById ( 'editor-output-terminal-header' ) ;
17
19
const outputTerminalContent = document . getElementById ( 'editor-output-terminal-content' ) ;
18
20
const exampleLua = document . getElementById ( 'editor-lua' ) ;
19
21
const astLua = document . getElementById ( 'editor-lua-ast' ) ;
20
22
23
+ // Set tstl version
24
+ outputTerminalHeader ! . textContent = `TypescriptToLua version ${ tstlPackageJson . version } ` ;
21
25
22
26
// Layout stuff
23
27
const luaTabText = document . getElementById ( "lua-tab-text" ) as HTMLDivElement | null ;
You can’t perform that action at this time.
0 commit comments