MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / readLuaLib

Function readLuaLib

test/util.ts:16–18  ·  view source on GitHub ↗
(target: tstl.LuaTarget)

Source from the content-addressed store, hash-verified

14import { resolveLuaLibDir } from "../src/LuaLib";
15
16function readLuaLib(target: tstl.LuaTarget) {
17 return fs.readFileSync(path.join(resolveLuaLibDir(target), "lualib_bundle.lua"), "utf8");
18}
19
20function jsonLib(target: tstl.LuaTarget): string {
21 const fileName = target === tstl.LuaTarget.Lua50 ? "json.50.lua" : "json.lua";

Callers 1

executeLuaFunction · 0.85

Calls 1

resolveLuaLibDirFunction · 0.90

Tested by

no test coverage detected