Skip to content

Commit

Permalink
fix: errors before merging
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoDornelles committed Nov 5, 2024
1 parent 39cf3b4 commit 64b2cfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/cli/commands/tools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ local util_fs = require('src/lib/util/fs')
local util_cmd = require('src/lib/util/cmd')

local function bundler(args)
local path, file = args.file:match("(.-)([^/\\]+)$")
return zeebo_bundler.build(path, file, args.dist..file)
local d = util_fs.path(args.dist)
local f = util_fs.file(args.file)
zeebo_fs.clear(d.get_fullfilepath())
return zeebo_bundler.build(f.get_sys_path(), f.get_file(), d.get_sys_path()..f.get_file())
end

local function compiler(args)
return zeebo_compiler.build(args.file, args.dist)
local file = util_fs.file(args.file).get_fullfilepath()
local dist = util_fs.file(args.dist).get_fullfilepath()
return zeebo_compiler.build(file, dist)
end

local function love_zip(args)
Expand Down
2 changes: 1 addition & 1 deletion tools/ci_luau-analyze.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ if core == 'cli' then
end

cmd('./cli.sh build --bundler --core '..core)
cmd(replace..'--format "function native_callback" --replace "local function _native_callback"')
cmd(replace..' --format "function native_callback" --replace "local function _native_callback"')
cmd('./cli.sh tool-package-del dist/main.lua third_party_json_rxi')
cmd('./cli.sh tool-package-del dist/main.lua lib_engine_api_encoder')

0 comments on commit 64b2cfd

Please sign in to comment.