File tree 3 files changed +19
-0
lines changed
3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 44
44
"@types/webpack-env" : " ^1.15.1" ,
45
45
"fengari-web" : " ^0.1.4" ,
46
46
"highlight.js" : " ^9.18.0" ,
47
+ "lua-types" : " ^2.7.0" ,
47
48
"monaco-editor" : " ^0.19.3" ,
48
49
"renderjson" : " ^1.4.0" ,
49
50
"typescript-to-lua" : " ^0.31.0"
Original file line number Diff line number Diff line change @@ -87,6 +87,16 @@ function addLibsFromContext(context: __WebpackModuleApi.RequireContext) {
87
87
}
88
88
89
89
addLibsFromContext ( require . context ( "!!raw-loader!typescript/lib/" , false , / l i b ( \. e s ( .+ ) ) ? \. d \. t s $ / ) ) ;
90
+ addLibsFromContext ( require . context ( "!!raw-loader!lua-types/core" , true , / \. d \. t s $ / ) ) ;
91
+ // TODO: Generate it from lua-types/special/5.3.d.ts
92
+ for ( const module of [
93
+ require ( "!!raw-loader!lua-types/special/5.2-plus.d.ts" ) ,
94
+ require ( "!!raw-loader!lua-types/special/5.2-plus-or-jit.d.ts" ) ,
95
+ require ( "!!raw-loader!lua-types/special/5.3-plus.d.ts" ) ,
96
+ require ( "!!raw-loader!lua-types/special/5.4-pre.d.ts" ) ,
97
+ ] ) {
98
+ monaco . languages . typescript . typescriptDefaults . addExtraLib ( module . default ) ;
99
+ }
90
100
91
101
const tsEditor = monaco . editor . create ( tsEditorContainer , {
92
102
value : getInitialCode ( ) ,
Original file line number Diff line number Diff line change @@ -3668,6 +3668,13 @@ fsevents@~2.1.2:
3668
3668
languageName : node
3669
3669
linkType : hard
3670
3670
3671
+ " lua-types@npm:^2.7.0 " :
3672
+ version : 2.7.0
3673
+ resolution : " lua-types@npm:2.7.0"
3674
+ checksum : 14199d9449e8a066a0ef87c608b85b9ee96617a326e02e0f466996cdc013909e46e5323eb223aafb1bfc1b136234d87e460d1221a7b04ab6a3927e4ba6fdf618
3675
+ languageName : node
3676
+ linkType : hard
3677
+
3671
3678
" make-dir@npm:^2.0.0 " :
3672
3679
version : 2.1.0
3673
3680
resolution : " make-dir@npm:2.1.0"
@@ -6347,6 +6354,7 @@ resolve@^1.13.1:
6347
6354
highlight.js : ^9.18.0
6348
6355
html-loader : ^0.5.5
6349
6356
html-webpack-plugin : ^3.2.0
6357
+ lua-types : ^2.7.0
6350
6358
monaco-editor : ^0.19.3
6351
6359
pnp-webpack-plugin : ^1.5.0
6352
6360
prettier : ^1.19.1
You can’t perform that action at this time.
0 commit comments