luarocks stuff

This commit is contained in:
Michael Freno
2025-12-06 16:21:03 -05:00
parent da69d8bd4f
commit f532837cf3
6 changed files with 37 additions and 13 deletions

View File

@@ -1,4 +1,10 @@
local modulePath = (...):match("(.-)[^%.]+$") -- Get the module path prefix (e.g., "libs." or "")
local packageName = ... or "FlexLove"
local modulePath = packageName:match("(.-)[^%.]+$") -- Get the module path prefix (e.g., "libs." or "")
-- If modulePath is empty (e.g., require("FlexLove")), use the package name
if modulePath == "" then
modulePath = packageName .. "."
end
local function req(name)
return require(modulePath .. "modules." .. name)
end