fix(rojo): pass directory to action from map

This commit is contained in:
Erica Marigold 2024-12-03 10:50:07 +00:00
parent 3a160c3e22
commit 5f068ba1b8
Signed by: DevComp
GPG key ID: 429EF1C337871656

View file

@ -40,7 +40,7 @@ return function(packageDirectory: string?): boolean
-- file predicates, if present, we execute the action and report our status
for path, action in PATH_ACTION_MAP do
if fs.isFile(`{packageDirectory}{PLATFORM_SEP}{path}`) then
local status = action()
local status = action(packageDirectory)
return if status ~= nil then status == 0 else true
end
end