feat: add lib table for exports

Anything assigned to the table will be exported; it's just a hacky way to provide support for Lua Language Server.
This commit is contained in:
Linden committed 2021-11-16 11:15:34 +11:00
1 parent 7c41ac5d6e
commit 52a3623e0e
2 files changed
+10

No files matched your search

+2
View File
@@ -6,6 +6,8 @@ local LIBRARY = 'pe-lualib'
local SERVICE = IsDuplicityVersion() and 'server' or 'client'
local IMPORTS = {}
lib = exports[LIBRARY]
local function LoadFile(file)
local dir = ('imports/%s'):format(file)
local chunk = LoadResourceFile(LIBRARY, ('%s/%s.lua'):format(dir, SERVICE))